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

Last change on this file since 10367 was 5664, checked in by phaller, 24 years ago

Added skeletons

File size: 884 bytes
Line 
1/* $Id: dbglocal.h,v 1.1 2001-05-07 08:23:49 phaller 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 ParseLogStatus();
18
19#define DBG_ENVNAME "dbg_ws2help"
20
21#define DBG_initterm 0
22#define DBG_wsastruct 1
23#define DBG_wsock32 2
24#define DBG_unknown 3
25#define DBG_async 4
26#define DBG_asyncthread 5
27#define DBG_wsa 6
28#define DBG_MAXFILES 7
29
30extern USHORT DbgEnabled[DBG_MAXFILES];
31
32#ifdef dprintf
33#undef dprintf
34#endif
35
36#define dprintf(a) if(DbgEnabled[DBG_LOCALLOG] == 1) WriteLog a
37
38#else
39
40#define ParseLogStatus()
41
42#endif //DEBUG
43
44#endif
Note: See TracBrowser for help on using the repository browser.