Changeset 504 for GPL/branches/uniaud32-2.1.x/include/dbgos2.h
- Timestamp:
- Jul 11, 2010, 7:42:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.1.x/include/dbgos2.h
r479 r504 26 26 #define __COMMDBG_H__ 27 27 28 //#ifdef DEBUG29 #if 130 28 #ifdef __cplusplus 31 29 extern "C" { 32 30 #endif 33 31 extern int DebugLevel; 34 32 extern int wrOffset; 33 extern char *szprintBuf; 34 //void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */ 35 35 void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */ 36 void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */37 36 #ifdef __cplusplus 38 37 } 39 38 #endif 40 #define dprintf(a) if(DebugLevel > 0) DPE a 39 40 /* rprintf always prints to the log buffer, and to SIO if enabled */ 41 #define rprintf(a) DPE a 42 43 /* the dprintf functions only print if DEBUG is defined */ 44 #ifdef DEBUG 45 #define DBG_MAX_BUF_SIZE 0x100000 46 #define dprintf(a) DPE a 47 #define dprintf1(a) if(DebugLevel > 0) DPE a 41 48 #define dprintf2(a) if(DebugLevel > 1) DPE a 42 49 #define dprintf3(a) if(DebugLevel > 2) DPE a 43 #define DebugInt3() ; //_asm int 3; 44 #define DebInt3() _asm int 3; 45 #else // #ifdef DEBUG 50 #define DebugInt3() ; //_asm int 3 51 //#define DebInt3() _asm int 3; 52 #else 53 // not DEBUG 54 #define DBG_MAX_BUF_SIZE 0x10000 46 55 #define dprintf(a) 56 #define dprintf1(a) 47 57 #define dprintf2(a) 48 58 #define dprintf3(a) 49 #define DebugInt3() ;50 #endif // #ifdef DEBUG59 #define DebugInt3() 60 #endif 51 61 52 62 #endif //__COMMDBG_H__ 63
Note:
See TracChangeset
for help on using the changeset viewer.