config-all.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //==========================================================================
00004 /**
00005  *  @file   config-all.h
00006  *
00007  *  $Id: config-all.h 81661 2008-05-09 12:05:34Z johnnyw $
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_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_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_TEXT (X), __LINE__, ACE_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 #if !defined (ACE_HAS_MONITOR_FRAMEWORK)
00076 # define ACE_HAS_MONITOR_FRAMEWORK 1
00077 #endif
00078 
00079 #if !defined (ACE_HAS_MONITOR_POINTS)
00080 # define ACE_HAS_MONITOR_POINTS 0
00081 #endif
00082 
00083 // These includes are here to avoid circular dependencies.
00084 // Keep this at the bottom of the file.  It contains the main macros.
00085 #include "ace/OS_main.h"
00086 
00087 #include /**/ "ace/post.h"
00088 
00089 #endif /* ACE_CONFIG_ALL_H */

Generated on Tue Feb 2 17:18:38 2010 for ACE by  doxygen 1.4.7