Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

Modules
Configuration Options And Macros
Collaboration diagram for Configuration Options And Macros:

Modules

 –enable-alloc (CWDEBUG_ALLOC)
 
 –enable-magic (CWDEBUG_MAGIC)
 
 –enable-glibcxx_debug (CWDEBUG_GLIBCXX_DEBUG)
 
 –enable-location (CWDEBUG_LOCATION)
 
 –enable-libbfd (CWDEBUG_LIBBFD)
 
 –enable-debug (CWDEBUG_DEBUG)
 
 –enable-debug-output (CWDEBUG_DEBUGOUTPUT)
 
 –enable-debugm (CWDEBUG_DEBUGM)
 
 –enable-marker (CWDEBUG_MARKER)
 

Detailed Description

Libcwd uses autoconf; configuration is done with the usual configure script.  You can list all options of configure by issuing configure –help .

This section describes the configure options specific to libcwd.  The name of the macros that are related to the respective features are given between parenthesis after the option.  You can not define these macros yourself, you may only use them in an #if ... #endif test.  The macros are always defined; when a configure option was used then the macro is defined to 1, otherwise it is defined to 0.  This makes it possible for the compiler to warn you when you made a typo in the name of a macro.

Example:

// Use '#if' not '#ifdef'.
#if CWDEBUG_ALLOC
Dout(dc::malloc, malloc_report << '.');
#endif
#define Dout(cntrl, data)
Macro for writing debug output.
Definition: debug.h:154
channel_ct malloc
Definition: debug.cc:474
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.