source: trunk/src/wsock32/dbglocal.h@ 6502

Last change on this file since 6502 was 6375, checked in by sandervl, 24 years ago

initterm update

File size: 1.1 KB
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
17void ParseLogStatusWSOCK32();
18
19#define DBG_ENVNAME "dbg_wsock32"
20#define DBG_ENVNAME_LVL2 "dbg_wsock32_lvl2"
21
22#define DBG_initterm 0
23#define DBG_wsastruct 1
24#define DBG_wsock32 2
25#define DBG_unknown 3
26#define DBG_async 4
27#define DBG_asyncthread 5
28#define DBG_wsa 6
29#define DBG_MAXFILES 7
30
31extern USHORT DbgEnabledWSOCK32[DBG_MAXFILES];
32extern USHORT DbgEnabledLvl2WSOCK32[DBG_MAXFILES];
33
34#ifdef dprintf
35#undef dprintf
36#endif
37
38#define dprintf(a) if(DbgEnabledWSOCK32[DBG_LOCALLOG] == 1) WriteLog a
39
40#ifdef dprintf2
41#undef dprintf2
42#endif
43
44#define dprintf2(a) if(DbgEnabledLvl2WSOCK32[DBG_LOCALLOG] == 1) WriteLog a
45
46#else
47
48#define ParseLogStatusWSOCK32()
49
50#endif //DEBUG
51
52#endif
Note: See TracBrowser for help on using the repository browser.