home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
CP
/
CPDBG.H
< prev
next >
Wrap
Text File
|
1992-07-15
|
3KB
|
93 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: cpdbg.h ║
// ║ ║
// ║ This software is provided as is and carries no warranty ║
// ║ whatsoever. Novell disclaims and excludes any and all implied ║
// ║ warranties of merchantability, title and fitness for a particular ║
// ║ purpose. Novell does not warrant that the software will satisfy ║
// ║ your requirements or that the software is without defect or error ║
// ║ or that operation of the software will be uninterrupted. You are ║
// ║ using the software at your risk. The software is not a product ║
// ║ of Novell, Inc. or any of subsidiaries. ║
// ║ ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ maintenance history: ║
// ║ level date pi description ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ 001 01/24/92 kl initial release. ║
// ║ 002 07/14/92 kl windows port. ║
// ╚════════════════════════════════════════════════════════════════════╝
#if !defined(CPDBG)
#define CPDBG
//
// DEBUG 1 - Level 1 *Error* type messages only
// DEBUG 2 - Level 2 *Warning* type messages and level 1
// DEBUG 3 - Level 3 Informational type messages and level's 1,2
// DEBUG 4 - Level 4 Debugging type messages and level's 1,2,3
//
#if defined(DEBUG)
# if DEBUG == 1
# define DEBUG1(x) x
# define DEBUG2
# define DEBUG3
# define DEBUG4
# elif DEBUG == 2
# define DEBUG1(x) x
# define DEBUG2(x) x
# define DEBUG3(x)
# define DEBUG4(x)
# elif DEBUG == 3
# define DEBUG1(x) x
# define DEBUG2(x) x
# define DEBUG3(x) x
# define DEBUG4(x)
# elif DEBUG == 4
# define DEBUG1(x) x
# define DEBUG2(x) x
# define DEBUG3(x) x
# define DEBUG4(x) x
# else
# define DEBUG1(x)
# define DEBUG2(x)
# define DEBUG3(x)
# define DEBUG4(x)
# endif
#else // defined(DEBUG)
# define DEBUG1(x)
# define DEBUG2(x)
# define DEBUG3(x)
# define DEBUG4(x)
#endif // defined(DEBUG)
//
// The following macros will execute expressions depending on what the
// debug level is set to.
//
#define xDIAG1(x) DEBUG1(x)
#define xDIAG2(x) DEBUG2(x)
#define xDIAG3(x) DEBUG3(x)
#define xDIAG4(x) DEBUG4(x)
#define DIAG1(x) xDIAG1(CPprintf(x "\n"))
#define DIAG2(x) xDIAG2(CPprintf(x "\n"))
#define DIAG3(x) xDIAG3(CPprintf(x "\n"))
#define DIAG4(x) xDIAG4(CPprintf(x "\n"))
#define HEXDIAG1(x,y) xDIAG1(CPprintf(x "(%X)\n",y))
#define HEXDIAG2(x,y) xDIAG2(CPprintf(x "(%X)\n",y))
#define HEXDIAG3(x,y) xDIAG3(CPprintf(x "(%X)\n",y))
#define HEXDIAG4(x,y) xDIAG4(CPprintf(x "(%X)\n",y))
#if defined(ENGINE)
# define CPprintf _CPioRoutine
#else
# define CPprintf printf
#endif
#endif