Does GCC have any built-in DEBUG preprocessor flags?

John Love-Jensen eljay@adobe.com
Fri Dec 6 12:45:00 GMT 2002


Hi Joseph,

Sort of the other way around.

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

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

--Eljay




More information about the Gcc-help mailing list