Does GCC have any built-in DEBUG preprocessor flags?

John Love-Jensen
Fri Dec 6 12:45:00 GMT 2002

Hi Joseph,

Sort of the other way around.

#ifdef NDEBUG
    // We're in RELEASE mode.
    // We're in DEBUG mode.

The presence of NDEBUG indicates non-debug compile.  q.v. of C++PL.


More information about the Gcc-help mailing list