Configure now adds -D__WXDEBUG__ to the compiler switches if run with
--with-debug_flag. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,7 +27,7 @@ TOOLKIT_DEF = -D@TOOLKIT_DEF@
|
||||
# general compiler stuff
|
||||
OPTIMISE = @OPTIMISE@
|
||||
PROFILE = @PROFILE@
|
||||
DEBUG = @WXDEBUG@
|
||||
DEBUG = @WXDEBUG@ @WXDEBUG_DEFINE@
|
||||
|
||||
# c-compiler stuff
|
||||
CC = @CC@
|
||||
|
@@ -191,9 +191,13 @@
|
||||
some new features such as event tables */
|
||||
#define WXWIN_COMPATIBILITY 1
|
||||
/*
|
||||
* Enables debugging: memory tracing, assert, etc.
|
||||
* Enables debugging: memory tracing, assert, etc., contains debug level
|
||||
*/
|
||||
#undef WXDEBUG
|
||||
/*
|
||||
* Enables debugging: memory tracing, assert, etc., undefined if no debugging
|
||||
*/
|
||||
#undef __WXDEBUG__
|
||||
/*
|
||||
* Enables debugging version of wxObject::new and wxObject::delete (IF WXDEBUG)
|
||||
* WARNING: this code may not work with all architectures, especially
|
||||
|
@@ -2,6 +2,8 @@ s|*OS*|@OS@|g
|
||||
s|*WXBASEDIR*|@WXBASEDIR@|g
|
||||
s|*PROFILE*|@PROFILE@|g
|
||||
s|*WXDEBUG*|@WXDEBUG@|g
|
||||
s|*WXDEBUG_DEFINE*|@WXDEBUG_DEFINE@|g
|
||||
s|*__WXDEBUG__*|@WXDEBUG@|g
|
||||
s|*OPTIMISE*|@OPTIMISE@|g
|
||||
s|*CC*|@CC@|g
|
||||
s|*CFLAGS*|@CFLAGS@|g
|
||||
|
Reference in New Issue
Block a user