Ignore:
Timestamp:
Mar 11, 2000, 10:51:51 PM (25 years ago)
Author:
sandervl
Message:

disable TRACE, ERR etc macro's for the release build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/debugtools.h

    r2651 r3095  
    140140#  define DEFAULT_DEBUG_CHANNEL ODINDEBUGCHANNEL
    141141#  undef TRACE
    142 #  define TRACE WriteLog
    143142#  undef TRACE_
    144 #  define TRACE_(ch) WriteLog
    145143#  undef TRACE_ON
    146144#  define TRACE_ON(ch) 0
    147145#  undef FIXME
    148 #  define FIXME WriteLog
    149146#  undef FIXME_
    150 #  define FIXME_(ch) WriteLog
    151147#  undef FIXME_ON
    152148#  define FIXME_ON(ch) 0
    153149#  undef WARN
    154 #  define WARN  WriteLog
    155150#  undef WARN_
    156 #  define WARN_(ch) WriteLog
    157151#  undef WARN_ON
    158152#  define WARN_ON(ch)  0
    159153#  undef ERR
    160 #  define ERR  WriteLog
    161154#  undef ERR_
    162 #  define ERR_(ch) WriteLog
    163155#  undef ERR_ON
    164156#  define ERR_ON(ch)   0
    165 
     157#ifdef DEBUG
     158#  define TRACE WriteLog
     159#  define TRACE_(ch) WriteLog
     160#  define FIXME WriteLog
     161#  define FIXME_(ch) WriteLog
     162#  define WARN  WriteLog
     163#  define WARN_(ch) WriteLog
     164#  define ERR_(ch) WriteLog
     165#  define ERR  WriteLog
     166#else
     167#  define TRACE 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     168#  define TRACE_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     169#  define FIXME 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     170#  define FIXME_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     171#  define WARN  1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     172#  define WARN_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     173#  define ERR_(ch) 1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     174#  define ERR  1 ? (void)0 : (void)((int (*)(char *, ...)) NULL)
     175#endif
    166176#undef __GET_DEBUGGING
    167177#define __GET_DEBUGGING(dbcl,dbch)
Note: See TracChangeset for help on using the changeset viewer.