home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool_main.zip
/
ool
/
include
/
debug.h
next >
Wrap
C/C++ Source or Header
|
1998-02-14
|
823b
|
17 lines
#include "os2.h"
extern BOOL __XDBGCondV__;
#include <stdio.h>
#define XDBGMessage(msg) fprintf (stderr, "%s: %s: %s\n", __FILE__, __LINE__, msg)
#define XDBGAlert(msg) fprintf (stderr, "%s: %s: %s\n", __FILE__, __LINE__, msg)
#define XDBGCheck(cond) if (cond) XDBGMessage (#cond)
#define XDBGAssert(cond) if (cond) XDBGMessage (#cond)
#define iif(cond) __XDBGCondV__ = (cond); if (__XDBGCondV__) XDBGMessage (#cond); if (__XDBGCondV__)
#define iff(cond) __XDBGCondV__ = (cond); if (__XDBGCondV__) XDBGAlert (#cond); if (__XDBGCondV__)
#define iifM(cond, msg) __XDBGCondV__ = (cond); if (__XDBGCondV__) XDBGMessage (#cond" // "#msg); if (__XDBGCondV__)
#define iffM(cond, msg) __XDBGCondV__ = (cond); if (__XDBGCondV__) XDBGAlert (#cond <<" // "<< msg); if (__XDBGCondV__)