34  extern unsigned int gDebugState;
 
   36  #define DM_CONTROL (1<<0) 
   37  #define DM_CLIENT  (1<<1) 
   39  #define DBG_ErrorPrintf STB_SPDebugNoCnWrite 
   40  #define DBG_DebugPrintf STB_SPDebugNoCnWrite 
   42  #define ASSERT(condition)  assert(condition); 
   43  #define ERRPRINT(x, ...) STB_SPDebugWrite( "%s:%d " x, __FUNCTION__, __LINE__, ##__VA_ARGS__); 
   44  #define DBGPRINT(t,x, ...)   if ( gDebugState & t ) \ 
   45    STB_SPDebugWrite( "%s:%d " x, __FUNCTION__, __LINE__, ##__VA_ARGS__); 
   49  #define ASSERT(condition) 
   50  #define ERRPRINT(x, ...) 
   51  #define DBGPRINT(t,x, ...) 
   53  #define DBG_ErrorPrintf NULL 
   54  #define DBG_DebugPrintf NULL 
   58  #define FUNCTION_START(x) 
   59  #define FUNCTION_FINISH(x) 
Interface to platform debug functions.