Last change
on this file since 17 was 17, checked in by phaller, 26 years ago |
Code cleanup #1 for build, mainly addresses linkage problems
|
File size:
1.1 KB
|
Line | |
---|
1 | /* $Id: misc.h,v 1.5 1999-05-31 22:08:08 phaller Exp $ */
|
---|
2 |
|
---|
3 | /*
|
---|
4 | * Miscellaneous definitions
|
---|
5 | * Debug prototypes and macros
|
---|
6 | */
|
---|
7 |
|
---|
8 |
|
---|
9 | #ifndef __MISC_H__
|
---|
10 | #define __MISC_H__
|
---|
11 |
|
---|
12 | #ifdef __cplusplus
|
---|
13 | extern "C" {
|
---|
14 | #endif
|
---|
15 |
|
---|
16 |
|
---|
17 | #ifdef DEBUG
|
---|
18 | #define DebugInt3() _interrupt(3)
|
---|
19 | #else
|
---|
20 | #define DebugInt3()
|
---|
21 | #endif
|
---|
22 |
|
---|
23 |
|
---|
24 | #ifdef DEBUG
|
---|
25 | #define dprintf(a) WriteLog a
|
---|
26 | #define eprintf(a) WriteLog a ; WriteLogError a
|
---|
27 | #define dassert(a, b) if(!(a)) WriteLogError b
|
---|
28 | #define dbgCheckObj(a) a->checkObject()
|
---|
29 | #else
|
---|
30 | #define dprintf(a)
|
---|
31 | #define eprintf(a)
|
---|
32 | #define dassert(a, b)
|
---|
33 | #define dbgCheckObj(a)
|
---|
34 | #endif
|
---|
35 |
|
---|
36 |
|
---|
37 | #ifndef ULONG
|
---|
38 | # define ULONG unsigned long
|
---|
39 | #endif
|
---|
40 |
|
---|
41 | #ifndef HMODULE
|
---|
42 | # define HMODULE ULONG
|
---|
43 | #endif
|
---|
44 |
|
---|
45 | #ifndef SYSTEM
|
---|
46 | # define SYSTEM _System
|
---|
47 | #endif
|
---|
48 |
|
---|
49 |
|
---|
50 | int SYSTEM WriteLog(char *tekst, ...);
|
---|
51 | int SYSTEM WriteLogError(char *tekst, ...);
|
---|
52 | void SYSTEM CheckVersion(ULONG version, char *modname);
|
---|
53 | void SYSTEM CheckVersionFromHMOD(ULONG version, HMODULE hModule);
|
---|
54 |
|
---|
55 | #ifdef __cplusplus
|
---|
56 | }
|
---|
57 | #endif
|
---|
58 |
|
---|
59 |
|
---|
60 | #ifndef _OS2WIN_H
|
---|
61 | #include <win32type.h>
|
---|
62 | #endif
|
---|
63 |
|
---|
64 | #include "versionos2.h"
|
---|
65 | #include "unicode.h"
|
---|
66 |
|
---|
67 |
|
---|
68 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.