Ignore:
Timestamp:
Jul 11, 2010, 7:42:10 AM (15 years ago)
Author:
David Azarewicz
Message:

Bring branch up-to-date with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-2.1.x/include/dbgos2.h

    r479 r504  
    2626#define __COMMDBG_H__
    2727
    28 //#ifdef DEBUG
    29 #if 1
    3028#ifdef __cplusplus
    3129extern "C" {
    3230#endif
    3331extern int DebugLevel;
    34 
     32extern int wrOffset;
     33extern char *szprintBuf;
     34//void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */
    3535void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
    36 void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */
    3736#ifdef __cplusplus
    3837}
    3938#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
    4148#define dprintf2(a)     if(DebugLevel > 1) DPE a
    4249#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
    4655#define dprintf(a)
     56#define dprintf1(a)
    4757#define dprintf2(a)
    4858#define dprintf3(a)
    49 #define DebugInt3()     ;
    50 #endif // #ifdef DEBUG
     59#define DebugInt3()
     60#endif
    5161
    5262#endif //__COMMDBG_H__
     63
Note: See TracChangeset for help on using the changeset viewer.