Last change
on this file since 10367 was 9429, checked in by sandervl, 23 years ago |
Added debug wrappers for all exports
|
File size:
1.5 KB
|
Line | |
---|
1 | /* $Id: dbglocal.h,v 1.8 2002-11-26 10:53:07 sandervl Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * debug logging functions for OS/2
|
---|
5 | *
|
---|
6 | * Overrides main dprintf macros
|
---|
7 | *
|
---|
8 | * Copyright 2000 Sander van Leeuwen
|
---|
9 | *
|
---|
10 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
11 | */
|
---|
12 | #ifndef __DBGLOCAL_H__
|
---|
13 | #define __DBGLOCAL_H__
|
---|
14 |
|
---|
15 | #ifdef DEBUG
|
---|
16 | //Parses environment variable for selective enabling/disabling of logging
|
---|
17 | void ParseLogStatusGDI32();
|
---|
18 |
|
---|
19 | #define DBG_ENVNAME "dbg_gdi32"
|
---|
20 | #define DBG_ENVNAME_LVL2 "dbg_gdi32_lvl2"
|
---|
21 |
|
---|
22 | #define DBG_gdi32 0
|
---|
23 | #define DBG_opengl 1
|
---|
24 | #define DBG_callback 2
|
---|
25 | #define DBG_dibsect 3
|
---|
26 | #define DBG_initterm 4
|
---|
27 | #define DBG_resource 5
|
---|
28 | #define DBG_oslibgdi 6
|
---|
29 | #define DBG_font 7
|
---|
30 | #define DBG_text 8
|
---|
31 | #define DBG_palette 9
|
---|
32 | #define DBG_line 10
|
---|
33 | #define DBG_oslibgpi 11
|
---|
34 | #define DBG_region 12
|
---|
35 | #define DBG_metafile 13
|
---|
36 | #define DBG_dibitmap 14
|
---|
37 | #define DBG_blit 15
|
---|
38 | #define DBG_rgbcvt 16
|
---|
39 | #define DBG_objhandle 17
|
---|
40 | #define DBG_transform 18
|
---|
41 | #define DBG_printer 19
|
---|
42 | #define DBG_icm 20
|
---|
43 | #define DBG_trace 21
|
---|
44 | #define DBG_MAXFILES 22
|
---|
45 |
|
---|
46 | extern USHORT DbgEnabledGDI32[DBG_MAXFILES];
|
---|
47 | extern USHORT DbgEnabledLvl2GDI32[DBG_MAXFILES];
|
---|
48 |
|
---|
49 | #ifdef dprintf
|
---|
50 | #undef dprintf
|
---|
51 | #endif
|
---|
52 |
|
---|
53 | #define dprintf(a) if(DbgEnabledGDI32[DBG_LOCALLOG] == 1) WriteLog a
|
---|
54 |
|
---|
55 | #ifdef dprintf2
|
---|
56 | #undef dprintf2
|
---|
57 | #endif
|
---|
58 |
|
---|
59 | #define dprintf2(a) if(DbgEnabledLvl2GDI32[DBG_LOCALLOG] == 1) WriteLog a
|
---|
60 |
|
---|
61 | #else
|
---|
62 |
|
---|
63 | #define ParseLogStatusGDI32()
|
---|
64 |
|
---|
65 | #endif //DEBUG
|
---|
66 |
|
---|
67 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.