1 | /* $Id: dbgos2.h,v 1.2 2003/08/08 15:09:03 vladest Exp $ */
|
---|
2 | /*
|
---|
3 | * Header for debug functions
|
---|
4 | *
|
---|
5 | * (C) 2000-2002 InnoTek Systemberatung GmbH
|
---|
6 | * (C) 2000-2001 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
7 | *
|
---|
8 | * This program is free software; you can redistribute it and/or
|
---|
9 | * modify it under the terms of the GNU General Public License as
|
---|
10 | * published by the Free Software Foundation; either version 2 of
|
---|
11 | * the License, or (at your option) any later version.
|
---|
12 | *
|
---|
13 | * This program is distributed in the hope that it will be useful,
|
---|
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | * GNU General Public License for more details.
|
---|
17 | *
|
---|
18 | * You should have received a copy of the GNU General Public
|
---|
19 | * License along with this program; if not, write to the Free
|
---|
20 | * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
21 | * USA.
|
---|
22 | *
|
---|
23 | */
|
---|
24 |
|
---|
25 | #ifndef __COMMDBG_H__
|
---|
26 | #define __COMMDBG_H__
|
---|
27 |
|
---|
28 | //#ifdef DEBUG
|
---|
29 | #if 1
|
---|
30 | #ifdef __cplusplus
|
---|
31 | extern "C" {
|
---|
32 | #endif
|
---|
33 | extern int DebugLevel;
|
---|
34 |
|
---|
35 | void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
|
---|
36 | void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */
|
---|
37 | #ifdef __cplusplus
|
---|
38 | }
|
---|
39 | #endif
|
---|
40 | #define dprintf(a) if(DebugLevel > 0) DPE a
|
---|
41 | #define dprintf2(a) if(DebugLevel > 1) DPE a
|
---|
42 | #define dprintf3(a) if(DebugLevel > 2) DPE a
|
---|
43 | #define DebugInt3() ; //_asm int 3;
|
---|
44 | #else
|
---|
45 | #define dprintf(a)
|
---|
46 | #define dprintf2(a)
|
---|
47 | #define dprintf3(a)
|
---|
48 | #define DebugInt3() ;
|
---|
49 | #endif
|
---|
50 |
|
---|
51 | #endif //__COMMDBG_H__
|
---|