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

Last change on this file since 5087 was 2859, checked in by sandervl, 26 years ago

* empty log message *

File size: 1.2 KB
Line 
1/* $Id: dbglocal.h,v 1.2 2000-02-22 19:12:16 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_winmm"
20
21#define DBG_os2timer 0
22#define DBG_waveout 1
23#define DBG_dwaveout 2
24#define DBG_time 3
25#define DBG_wavein 4
26#define DBG_auxiliary 5
27#define DBG_auxos2 6
28#define DBG_mixer 7
29#define DBG_midi 8
30#define DBG_irtmidi 9
31#define DBG_midistrm 10
32#define DBG_initterm 11
33#define DBG_mci 12
34#define DBG_joy 13
35#define DBG_mmio 14
36#define DBG_driver 15
37#define DBG_playsound 16
38#define DBG_joyos2 17
39#define DBG_resource 18
40#define DBG_MAXFILES 19
41
42extern USHORT DbgEnabled[DBG_MAXFILES];
43
44#ifdef dprintf
45#undef dprintf
46#endif
47
48#define dprintf(a) if(DbgEnabled[DBG_LOCALLOG] == 1) WriteLog a
49
50#else
51
52#define ParseLogStatus()
53
54#endif //DEBUG
55
56#endif
Note: See TracBrowser for help on using the repository browser.