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
|
Rev | Line | |
---|
[17] | 1 | /* $Id: misc.h,v 1.5 1999-05-31 22:08:08 phaller Exp $ */
|
---|
[4] | 2 |
|
---|
[17] | 3 | /*
|
---|
| 4 | * Miscellaneous definitions
|
---|
| 5 | * Debug prototypes and macros
|
---|
| 6 | */
|
---|
| 7 |
|
---|
| 8 |
|
---|
[4] | 9 | #ifndef __MISC_H__
|
---|
| 10 | #define __MISC_H__
|
---|
| 11 |
|
---|
| 12 | #ifdef __cplusplus
|
---|
| 13 | extern "C" {
|
---|
| 14 | #endif
|
---|
| 15 |
|
---|
[13] | 16 |
|
---|
[4] | 17 | #ifdef DEBUG
|
---|
[13] | 18 | #define DebugInt3() _interrupt(3)
|
---|
[4] | 19 | #else
|
---|
[13] | 20 | #define DebugInt3()
|
---|
[4] | 21 | #endif
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | #ifdef DEBUG
|
---|
[13] | 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()
|
---|
[4] | 29 | #else
|
---|
[13] | 30 | #define dprintf(a)
|
---|
| 31 | #define eprintf(a)
|
---|
| 32 | #define dassert(a, b)
|
---|
| 33 | #define dbgCheckObj(a)
|
---|
[4] | 34 | #endif
|
---|
| 35 |
|
---|
[17] | 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 |
|
---|
[13] | 50 | int SYSTEM WriteLog(char *tekst, ...);
|
---|
| 51 | int SYSTEM WriteLogError(char *tekst, ...);
|
---|
[4] | 52 | void SYSTEM CheckVersion(ULONG version, char *modname);
|
---|
| 53 | void SYSTEM CheckVersionFromHMOD(ULONG version, HMODULE hModule);
|
---|
| 54 |
|
---|
| 55 | #ifdef __cplusplus
|
---|
| 56 | }
|
---|
| 57 | #endif
|
---|
| 58 |
|
---|
[13] | 59 |
|
---|
| 60 | #ifndef _OS2WIN_H
|
---|
| 61 | #include <win32type.h>
|
---|
| 62 | #endif
|
---|
| 63 |
|
---|
[4] | 64 | #include "versionos2.h"
|
---|
| 65 | #include "unicode.h"
|
---|
| 66 |
|
---|
[17] | 67 |
|
---|
[4] | 68 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.