Removed references to DEBUG and WXDEBUG; cured Motif font problem; removed
some warnings in OGL; fixed bug in wxChoice git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
<BR>
|
||||
<BR>
|
||||
Extensive use of these macros is recommended! Remember that ASSERTs are
|
||||
disabled in final (without WXDEBUG defined) build, so they add strictly
|
||||
disabled in final (without __WXDEBUG__ defined) build, so they add strictly
|
||||
nothing to your program's code. On the other hand, CHECK macros do stay
|
||||
even in release builds, but in general are not much of a burden, while
|
||||
a judicious use of them might increase your program's stability.
|
||||
@@ -62,7 +62,7 @@
|
||||
// no more bugs ;-)
|
||||
#define wxASSERT(cond)
|
||||
#define wxASSERT_MSG(x, m)
|
||||
#endif //WXDEBUG
|
||||
#endif //__WXDEBUG__
|
||||
|
||||
/// special form of assert: always triggers it (in debug mode)
|
||||
#define wxFAIL wxASSERT(wxFalse)
|
||||
|
@@ -290,8 +290,8 @@ WXDLLEXPORT_DATA(extern const bool) wxFalse;
|
||||
|
||||
// where should i put this? we need to make sure of this as it breaks
|
||||
// the <iostream> code.
|
||||
#if !wxUSE_IOSTREAMH && WXDEBUG
|
||||
#undef WXDEBUG
|
||||
#if !wxUSE_IOSTREAMH && defined(__WXDEBUG__)
|
||||
#undef __WXDEBUG__
|
||||
#endif
|
||||
|
||||
// Callback function type definition
|
||||
|
@@ -23,7 +23,7 @@
|
||||
info, or to be a straight call to the new operator.
|
||||
*/
|
||||
|
||||
#if (WXDEBUG && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
|
||||
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
#include "wx/string.h"
|
||||
|
||||
#if WXDEBUG
|
||||
#ifdef __WXDEBUG__
|
||||
|
||||
// #ifndef WXDEBUG_NEW
|
||||
// #define WXDEBUG_NEW new(__FILE__,__LINE__)
|
||||
@@ -280,7 +280,7 @@ inline void wxTraceLevel(int WXUNUSED(level), const char *WXUNUSED(fmt)) {}
|
||||
#define WXTRACELEVEL TRUE ? (void)0 : wxTraceLevel
|
||||
// #define WXDEBUG_NEW new
|
||||
|
||||
#endif // WXDEBUG
|
||||
#endif // __WXDEBUG__
|
||||
|
||||
#endif
|
||||
// _WX_MEMORYH__
|
||||
|
@@ -402,7 +402,7 @@ public:
|
||||
// Does this window want to accept keyboard focus?
|
||||
virtual bool AcceptsFocus() const;
|
||||
|
||||
virtual void PrepareDC( wxDC &dc ) {};
|
||||
virtual void PrepareDC( wxDC & WXUNUSED(dc) ) {};
|
||||
|
||||
|
||||
public:
|
||||
|
@@ -187,7 +187,7 @@ class WXDLLEXPORT wxObject
|
||||
|
||||
bool IsKindOf(wxClassInfo *info) const;
|
||||
|
||||
#if WXDEBUG && wxUSE_MEMORY_TRACING
|
||||
#if defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING
|
||||
void * operator new (size_t size, char * fileName = NULL, int lineNum = 0);
|
||||
void operator delete (void * buf);
|
||||
|
||||
@@ -204,7 +204,7 @@ class WXDLLEXPORT wxObject
|
||||
|
||||
#endif
|
||||
|
||||
#if WXDEBUG || wxUSE_DEBUG_CONTEXT
|
||||
#if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT
|
||||
virtual void Dump(ostream& str);
|
||||
#endif
|
||||
|
||||
@@ -246,7 +246,7 @@ private:
|
||||
int m_count;
|
||||
};
|
||||
|
||||
#if WXDEBUG && wxUSE_GLOBAL_MEMORY_OPERATORS
|
||||
#if defined(__WXDEBUG__) && wxUSE_GLOBAL_MEMORY_OPERATORS
|
||||
//#ifndef WXDEBUG_NEW
|
||||
//#define WXDEBUG_NEW new(__FILE__,__LINE__)
|
||||
//#endif
|
||||
|
@@ -187,7 +187,7 @@ class WXDLLEXPORT wxDebugStreamBuf: public streambuf
|
||||
int sync(void);
|
||||
};
|
||||
|
||||
// #if WXDEBUG && wxUSE_GLOBAL_MEMORY_OPERATORS
|
||||
// #if defined(__WXDEBUG__) && wxUSE_GLOBAL_MEMORY_OPERATORS
|
||||
// #define new WXDEBUG_NEW
|
||||
// #endif
|
||||
|
||||
|
Reference in New Issue
Block a user