Last change
on this file since 10366 was 8543, checked in by sandervl, 23 years ago |
seperate odin control dll with latest wine controls added (not activate & not finished)
|
File size:
1.4 KB
|
Line | |
---|
1 | /* $Id: dbglocal.h,v 1.1 2002-06-02 10:09:28 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 ParseLogStatusUSER32();
|
---|
18 |
|
---|
19 | #define DBG_ENVNAME "dbg_user32"
|
---|
20 | #define DBG_ENVNAME_LVL2 "dbg_user32_lvl2"
|
---|
21 |
|
---|
22 | #define DBG_controls 0
|
---|
23 | #define DBG_button 1
|
---|
24 | #define DBG_static 2
|
---|
25 | #define DBG_scroll 3
|
---|
26 | #define DBG_listbox 4
|
---|
27 | #define DBG_menu 5
|
---|
28 | #define DBG_combo 6
|
---|
29 | #define DBG_edit 7
|
---|
30 | #define DBG_winswitch 8
|
---|
31 | #define DBG_icontitle 9
|
---|
32 | #define DBG_initterm 10
|
---|
33 | #define DBG_trace 11
|
---|
34 | #define DBG_dialog 12
|
---|
35 | #define DBG_MAXFILES 13
|
---|
36 |
|
---|
37 | extern USHORT DbgEnabledOdinCtrl[DBG_MAXFILES];
|
---|
38 | extern USHORT DbgEnabledLvl2OdinCtrl[DBG_MAXFILES];
|
---|
39 |
|
---|
40 | #ifdef dprintf
|
---|
41 | #undef dprintf
|
---|
42 | #endif
|
---|
43 |
|
---|
44 | #define dprintf(a) if(DbgEnabledOdinCtrl[DBG_LOCALLOG] == 1) WriteLog a
|
---|
45 |
|
---|
46 | #ifdef dprintf2
|
---|
47 | #undef dprintf2
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #define dprintf2(a) if(DbgEnabledLvl2OdinCtrl[DBG_LOCALLOG] == 1) WriteLog a
|
---|
51 |
|
---|
52 | #else
|
---|
53 |
|
---|
54 | #define ParseLogStatusOdinCtrl()
|
---|
55 |
|
---|
56 | #endif //DEBUG
|
---|
57 |
|
---|
58 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.