config-all.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //==========================================================================
00004 /**
00005  *  @file   config-all.h
00006  *
00007  *  config-all.h,v 4.82 2006/01/16 19:44:00 jwillemsen Exp
00008  *
00009  *  @author (Originally in OS.h)Doug Schmidt <schmidt@cs.wustl.edu>
00010  *  @author Jesper S. M|ller<stophph@diku.dk>
00011  *  @author and a cast of thousands...
00012  */
00013 //==========================================================================
00014 
00015 #ifndef ACE_CONFIG_ALL_H
00016 #define ACE_CONFIG_ALL_H
00017 
00018 #include /**/ "ace/pre.h"
00019 
00020 #include "ace/config-lite.h"
00021 
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif /* ACE_LACKS_PRAGMA_ONCE */
00025 
00026 // This is used to indicate that a platform doesn't support a
00027 // particular feature.
00028 #if defined ACE_HAS_VERBOSE_NOTSUP
00029   // Print a console message with the file and line number of the
00030   // unsupported function.
00031 # include "ace/OS_NS_stdio.h"
00032 # define ACE_NOTSUP_RETURN(FAILVALUE) do { errno = ENOTSUP; ACE_OS::fprintf (stderr, ACE_LIB_TEXT ("ACE_NOTSUP: %s, line %d\n"), __FILE__, __LINE__); return FAILVALUE; } while (0)
00033 # define ACE_NOTSUP do { errno = ENOTSUP; ACE_OS::fprintf (stderr, ACE_LIB_TEXT ("ACE_NOTSUP: %s, line %d\n"), __FILE__, __LINE__); return; } while (0)
00034 #else /* ! ACE_HAS_VERBOSE_NOTSUP */
00035 # define ACE_NOTSUP_RETURN(FAILVALUE) do { errno = ENOTSUP ; return FAILVALUE; } while (0)
00036 # define ACE_NOTSUP do { errno = ENOTSUP; return; } while (0)
00037 #endif /* ! ACE_HAS_VERBOSE_NOTSUP */
00038 
00039 // ----------------------------------------------------------------
00040 
00041 # define ACE_TRACE_IMPL(X) ACE_Trace ____ (ACE_LIB_TEXT (X), __LINE__, ACE_LIB_TEXT (__FILE__))
00042 
00043 // By default tracing is turned off.
00044 #if !defined (ACE_NTRACE)
00045 #  define ACE_NTRACE 1
00046 #endif /* ACE_NTRACE */
00047 
00048 #if (ACE_NTRACE == 1)
00049 #  define ACE_TRACE(X)
00050 #else
00051 #  if !defined (ACE_HAS_TRACE)
00052 #    define ACE_HAS_TRACE
00053 #  endif /* ACE_HAS_TRACE */
00054 #  define ACE_TRACE(X) ACE_TRACE_IMPL(X)
00055 #  include "ace/Trace.h"
00056 #endif /* ACE_NTRACE */
00057 
00058 // By default we perform no tracing on the OS layer, otherwise the
00059 // coupling between the OS layer and Log_Msg is too tight.  But the
00060 // application can override the default if they wish to.
00061 #if !defined (ACE_OS_NTRACE)
00062 #  define ACE_OS_NTRACE 1
00063 #endif /* ACE_OS_NTRACE */
00064 
00065 #if (ACE_OS_NTRACE == 1)
00066 #  define ACE_OS_TRACE(X)
00067 #else
00068 #  if !defined (ACE_HAS_TRACE)
00069 #    define ACE_HAS_TRACE
00070 #  endif /* ACE_HAS_TRACE */
00071 #  define ACE_OS_TRACE(X) ACE_TRACE_IMPL(X)
00072 #  include "ace/Trace.h"
00073 #endif /* ACE_OS_NTRACE */
00074 
00075 // These includes are here to avoid circular dependencies.
00076 // Keep this at the bottom of the file.  It contains the main macros.
00077 #include "ace/OS_main.h"
00078 
00079 #include /**/ "ace/post.h"
00080 
00081 #endif /* ACE_CONFIG_ALL_H */

Generated on Thu Nov 9 09:41:48 2006 for ACE by doxygen 1.3.6