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

Last change on this file since 5087 was 3229, checked in by sandervl, 25 years ago

replaced with new wsock32

File size: 885 bytes
Line 
1/* $Id: dbglocal.h,v 1.4 2000-03-24 19:28:05 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 ParseLogStatus();
18
19#define DBG_ENVNAME "dbg_wsock32"
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.