Code::Blocks Forums

User forums => Help => Topic started by: 12oclocker on November 02, 2010, 12:16:08 am

Title: #if _DEBUG ??
Post by: 12oclocker on November 02, 2010, 12:16:08 am
for those that want to use compile time statment for a win32 gui application, such as

#if DEBUG
//do something here if compiled in debug mode only
#endif

I notice in "project->build options->[#defines]"
select Debug in the left list, then you must add "DEBUG = 1" in the "#defines" tab, it's not there by default ;-)