Line | |
---|
1 | /* $Id: dbglocal.h,v 1.6 2001-07-20 15:35: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 | void ParseLogStatusWINMM();
|
---|
18 |
|
---|
19 | #define DBG_ENVNAME "dbg_winmm"
|
---|
20 | #define DBG_ENVNAME_LVL2 "dbg_winmm_lvl2"
|
---|
21 |
|
---|
22 | #define DBG_os2timer 0
|
---|
23 | #define DBG_waveout 1
|
---|
24 | #define DBG_waveoutdart 2
|
---|
25 | #define DBG_time 3
|
---|
26 | #define DBG_wavein 4
|
---|
27 | #define DBG_auxiliary 5
|
---|
28 | #define DBG_auxos2 6
|
---|
29 | #define DBG_mixer 7
|
---|
30 | #define DBG_midi 8
|
---|
31 | #define DBG_irtmidi 9
|
---|
32 | #define DBG_midistrm 10
|
---|
33 | #define DBG_initterm 11
|
---|
34 | #define DBG_mci 12
|
---|
35 | #define DBG_joy 13
|
---|
36 | #define DBG_mmio 14
|
---|
37 | #define DBG_driver 15
|
---|
38 | #define DBG_playsound 16
|
---|
39 | #define DBG_joyos2 17
|
---|
40 | #define DBG_resource 18
|
---|
41 | #define DBG_waveindart 19
|
---|
42 | #define DBG_waveoutdaud 20
|
---|
43 | #define DBG_waveoutbase 21
|
---|
44 | #define DBG_waveinoutbase 22
|
---|
45 | #define DBG_MAXFILES 23
|
---|
46 |
|
---|
47 | extern USHORT DbgEnabledWINMM[DBG_MAXFILES];
|
---|
48 | extern USHORT DbgEnabledLvl2WINMM[DBG_MAXFILES];
|
---|
49 |
|
---|
50 | #ifdef dprintf
|
---|
51 | #undef dprintf
|
---|
52 | #endif
|
---|
53 |
|
---|
54 | #define dprintf(a) if(DbgEnabledWINMM[DBG_LOCALLOG] == 1) WriteLog a
|
---|
55 |
|
---|
56 | #ifdef dprintf2
|
---|
57 | #undef dprintf2
|
---|
58 | #endif
|
---|
59 |
|
---|
60 | #define dprintf2(a) if(DbgEnabledLvl2WINMM[DBG_LOCALLOG] == 1) WriteLog a
|
---|
61 |
|
---|
62 | #else
|
---|
63 |
|
---|
64 | #define ParseLogStatusWINMM()
|
---|
65 |
|
---|
66 | #endif //DEBUG
|
---|
67 |
|
---|
68 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.