libcwd: The C++ Debugging Support Library - Reference Manual
Author: Carlo Wood
Description: C++ debugging support library with ostream debug output
Keywords: libcwd, debug output, debug facility, debug channel, object orientation, OO, C++, nested debug output, ostream, memory allocation, debugging, source file and line number

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

# Configuration Options And Macros
[Configuration, Installation And Getting Started]

Collaboration diagram for Configuration Options And Macros:

## Related
| --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