Define wxDEBUG_LEVEL in both debug and release builds as 1.
By default include assertions and debug logging in both debug and release builds but disable them in application release builds (when NDEBUG is defined). Also update (more accurately, replace) debugging overview. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -174,6 +174,8 @@ extern WXDLLIMPEXP_CORE int
|
||||
wchar_t * WXUNUSED(lpCmdLine), \
|
||||
int nCmdShow) \
|
||||
{ \
|
||||
wxDISABLE_DEBUG_SUPPORT(); \
|
||||
\
|
||||
/* NB: wxEntry expects lpCmdLine argument to be char*, not */ \
|
||||
/* wchar_t*, but fortunately it's not used anywhere */ \
|
||||
/* and we can simply pass NULL in: */ \
|
||||
@@ -189,6 +191,8 @@ extern WXDLLIMPEXP_CORE int
|
||||
wxCmdLineArgType WXUNUSED(lpCmdLine), \
|
||||
int nCmdShow) \
|
||||
{ \
|
||||
wxDISABLE_DEBUG_SUPPORT(); \
|
||||
\
|
||||
/* NB: We pass NULL in place of lpCmdLine to behave the same as */ \
|
||||
/* Borland-specific wWinMain() above. If it becomes needed */ \
|
||||
/* to pass lpCmdLine to wxEntry() here, you'll have to fix */ \
|
||||
|
Reference in New Issue
Block a user