Last change
on this file since 22015 was 21311, checked in by vladest, 16 years ago |
Added CRYPT32 and MSCMS APIs support
|
File size:
1002 bytes
|
Line | |
---|
1 | /* $Id: dbglocal.h,v 1.5 2001/07/20 15:41:04 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 ParseLogStatusCRYPT32();
|
---|
18 |
|
---|
19 | #define DBG_ENVNAME "dbg_crypt32"
|
---|
20 | #define DBG_ENVNAME_LVL2 "dbg_crypt32_lvl2"
|
---|
21 |
|
---|
22 | #define DBG_initterm 0
|
---|
23 | #define DBG_MAXFILES 1
|
---|
24 |
|
---|
25 | extern USHORT DbgEnabledCRYPT32[DBG_MAXFILES];
|
---|
26 | extern USHORT DbgEnabledLvl2CRYPT32[DBG_MAXFILES];
|
---|
27 |
|
---|
28 | #ifdef dprintf
|
---|
29 | #undef dprintf
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | #define dprintf(a) if(DbgEnabledCRYPT32[DBG_LOCALLOG] == 1) WriteLog a
|
---|
33 |
|
---|
34 | #ifdef dprintf2
|
---|
35 | #undef dprintf2
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | #define dprintf2(a) if(DbgEnabledLvl2CRYPT2[DBG_LOCALLOG] == 1) WriteLog a
|
---|
39 |
|
---|
40 | #else
|
---|
41 |
|
---|
42 | #define ParseLogStatusCRYPT32()
|
---|
43 |
|
---|
44 | #endif //DEBUG
|
---|
45 |
|
---|
46 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.