source: trunk/src/uxtheme/dbglocal.h@ 10367

Last change on this file since 10367 was 8220, checked in by bird, 23 years ago

Initial stubbing.

File size: 1.1 KB
Line 
1/* $Id: dbglocal.h,v 1.1 2002-04-10 18:35:18 bird Exp $
2 *
3 * Debug logging functions for OS/2 - Overrides main dprintf macros.
4 *
5 * Copyright 2000 Sander van Leeuwen
6 * Copyright (c) 2002 knut st. osmundsen (bird@anduin.net)
7 *
8 * Project Odin Software License can be found in LICENSE.TXT
9 */
10
11#ifndef __DBGLOCAL_H__
12 #define __DBGLOCAL_H__
13
14 #ifdef DEBUG
15 /* Parses environment variable for selective enabling/disabling of logging */
16 void ParseLogStatus(void);
17
18 #define DBG_ENVNAME "dbg_uxtheme"
19 #define DBG_ENVNAME_LVL2 "dbg_uxtheme_lvl2"
20
21 #define DBG_uxtheme 0
22 #define DBG_MAXFILES 1
23
24 extern USHORT DbgEnabled[DBG_MAXFILES];
25 extern USHORT DbgEnabledLvl2[DBG_MAXFILES];
26
27 #ifdef dprintf
28 #undef dprintf
29 #endif
30
31 #define dprintf(a) if(DbgEnabled[DBG_LOCALLOG] == 1) WriteLog a
32
33 #ifdef dprintf2
34 #undef dprintf2
35 #endif
36
37 #define dprintf2(a) if(DbgEnabledLvl2[DBG_LOCALLOG] == 1) WriteLog a
38
39 #else
40
41 #define ParseLogStatus()
42
43 #endif //DEBUG
44
45#endif
Note: See TracBrowser for help on using the repository browser.