// define wxLog<level>
// ----------------------------------------------------------------------------
-#ifdef __WATCOMC__
- // workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351
- #define WX_WATCOM_ONLY_CODE( x ) x
-#else
- #define WX_WATCOM_ONLY_CODE( x )
-#endif
-
#define DECLARE_LOG_FUNCTION(level) \
extern void WXDLLIMPEXP_BASE \
wxDoLog##level(const wxString& format, ...); \
#else // !wxUSE_LOG
+#ifdef __WATCOMC__
+ // workaround for http://bugzilla.openwatcom.org/show_bug.cgi?id=351
+ #define WX_WATCOM_ONLY_CODE( x ) x
+#else
+ #define WX_WATCOM_ONLY_CODE( x )
+#endif
+
// log functions do nothing at all
#define DECLARE_LOG_FUNCTION(level) \
WX_DEFINE_VARARG_FUNC_NOP(wxLog##level, 1, (const wxString&)) \
const wxString& WXUNUSED(format), \
va_list WXUNUSED(argptr)) {}
-#undef WX_WATCOM_ONLY_CODE
-
// Empty Class to fake wxLogNull
class WXDLLIMPEXP_BASE wxLogNull
{
#include "wx/cocoa/log.h"
#endif
+#ifdef WX_WATCOM_ONLY_CODE
+ #undef WX_WATCOM_ONLY_CODE
+#endif
+
#endif // _WX_LOG_H_
_WX_VARARG_DEFINE_FUNC_NOP_N0(name, numfixed, fixed) \
_WX_VARARG_ITER(_WX_VARARG_MAX_ARGS, \
_WX_VARARG_DEFINE_FUNC_NOP, \
- void, name, dummy, numfixed, fixed)
+ void, name, dummy, dummy, numfixed, fixed)
// Like WX_DEFINE_VARARG_FUNC_CTOR, but for defining template constructors
#define WX_DEFINE_VARARG_FUNC_CTOR(name, numfixed, fixed, impl) \