Rev | Line | |
---|
[10300] | 1 | /* $Id: dbglocal.h,v 1.1 2003-10-24 15:08:00 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 |
|
---|
| 18 | #ifdef __cplusplus
|
---|
| 19 | extern "C" {
|
---|
| 20 | #endif
|
---|
| 21 |
|
---|
| 22 | void ParseLogStatusVERSION();
|
---|
| 23 | BOOL CheckDebugStatus(int index);
|
---|
| 24 |
|
---|
| 25 | #ifdef __cplusplus
|
---|
| 26 | }
|
---|
| 27 | #endif
|
---|
| 28 |
|
---|
| 29 | #define DBG_ENVNAME "dbg_version"
|
---|
| 30 | #define DBG_ENVNAME_LVL2 "dbg_version_lvl2"
|
---|
| 31 |
|
---|
| 32 | #define DBG_info 0
|
---|
| 33 | #define DBG_install 1
|
---|
| 34 | #define DBG_resource 2
|
---|
| 35 | #define DBG_MAXFILES 3
|
---|
| 36 |
|
---|
| 37 | extern USHORT DbgEnabledVERSION[DBG_MAXFILES];
|
---|
| 38 |
|
---|
| 39 | #ifdef dprintf
|
---|
| 40 | #undef dprintf
|
---|
| 41 | #endif
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | #define dprintf(a) if(CheckDebugStatus(DBG_LOCALLOG)) WriteLog a
|
---|
| 45 |
|
---|
| 46 | #else
|
---|
| 47 |
|
---|
| 48 | #define ParseLogStatusVERSION()
|
---|
| 49 |
|
---|
| 50 | #endif //DEBUG
|
---|
| 51 |
|
---|
| 52 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.