include/df/trace.hpp

00001 extern void trace(char *, ...);
00002 extern void trace_data(PTR, uint32, BOOL);
00003 
00004 #ifdef __GNUC__
00005 #ifdef DEBUG
00006 #define TRACE(...) trace(__VA_ARGS__)
00007 #define TRACE_DATA(x,y,z) trace_data(x,y,z)  //x = PTR y = length z = binary data? TRUE/FALSE
00008 #else
00009 #define TRACE(...)
00010 #define TRACE_DATA(x,y,z)
00011 #endif
00012 #else
00013 //Note : VisualC++ does not support var args in macros, warning will be issued
00014 // and the resulting code will not work if you use TRACE(x) below with
00015 // more than one arg.
00016 #ifdef DEBUG
00017 //#warning TRACE macro does not support more than one argument!
00018 #define TRACE(x) trace(x)
00019 #define TRACE_DATA(x,y,z) trace_data(x,y,z)
00020 #else
00021 #define TRACE(x)
00022 #define TRACE_DATA(x,y,z)
00023 #endif
00024 #endif
00025 

Generated on Mon Mar 5 09:49:14 2007 for DigiForce by  doxygen 1.4.7