This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Does GCC have any built-in DEBUG preprocessor flags?
- From: John Love-Jensen <eljay at adobe dot com>
- To: "Joseph D. Wagner" <wagnerjd at prodigy dot net>, GCC Help <gcc-help at gcc dot gnu dot org>
- Date: Fri, 06 Dec 2002 14:42:57 -0600
- Subject: Re: Does GCC have any built-in DEBUG preprocessor flags?
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