| Rev | Line |  | 
|---|
| [4] | 1 | /* $Id: misc.h,v 1.1 1999-05-24 20:19:06 ktk Exp $ */ | 
|---|
|  | 2 |  | 
|---|
|  | 3 | #ifndef __MISC_H__ | 
|---|
|  | 4 | #define __MISC_H__ | 
|---|
|  | 5 |  | 
|---|
|  | 6 | #ifndef _OS2WIN_H | 
|---|
|  | 7 | #include <win32type.h> | 
|---|
|  | 8 | #endif | 
|---|
|  | 9 |  | 
|---|
|  | 10 | #ifdef __cplusplus | 
|---|
|  | 11 | extern "C" { | 
|---|
|  | 12 | #endif | 
|---|
|  | 13 |  | 
|---|
|  | 14 | #ifdef __WATCOMC__ | 
|---|
|  | 15 | #define CDECL _cdecl | 
|---|
|  | 16 | #define EXPORT _export | 
|---|
|  | 17 | #define WIN32API  __stdcall | 
|---|
|  | 18 | #else | 
|---|
|  | 19 | #ifndef CDECL | 
|---|
|  | 20 | #define CDECL __cdecl | 
|---|
|  | 21 | #endif | 
|---|
|  | 22 | #define EXPORT _Export | 
|---|
|  | 23 | #define WIN32API  __stdcall /*_Export done in *.def file now */ | 
|---|
|  | 24 | #include <builtin.h> | 
|---|
|  | 25 |  | 
|---|
|  | 26 | #ifdef DEBUG | 
|---|
|  | 27 | #define DebugInt3()     _interrupt(3) | 
|---|
|  | 28 | #else | 
|---|
|  | 29 | #define DebugInt3() | 
|---|
|  | 30 | #endif | 
|---|
|  | 31 |  | 
|---|
|  | 32 | #endif | 
|---|
|  | 33 |  | 
|---|
|  | 34 | #define SYSTEM _System | 
|---|
|  | 35 |  | 
|---|
|  | 36 | #ifdef DEBUG | 
|---|
|  | 37 | #define dprintf(a)      WriteLog a | 
|---|
|  | 38 | #define eprintf(a)      WriteLog a ; WriteLogError a | 
|---|
|  | 39 | #define dassert(a, b)   if(!(a)) WriteLogError b | 
|---|
|  | 40 | #define dbgCheckObj(a)  a->checkObject() | 
|---|
|  | 41 | #else | 
|---|
|  | 42 | #define dprintf(a) | 
|---|
|  | 43 | #define eprintf(a) | 
|---|
|  | 44 | #define dassert(a, b) | 
|---|
|  | 45 | #define dbgCheckObj(a) | 
|---|
|  | 46 | #endif | 
|---|
|  | 47 |  | 
|---|
|  | 48 | int SYSTEM  WriteLog(char *tekst, ...); | 
|---|
|  | 49 | int SYSTEM  WriteLogError(char *tekst, ...); | 
|---|
|  | 50 | void SYSTEM CheckVersion(ULONG version, char *modname); | 
|---|
|  | 51 | void SYSTEM CheckVersionFromHMOD(ULONG version, HMODULE hModule); | 
|---|
|  | 52 |  | 
|---|
|  | 53 | #ifdef __cplusplus | 
|---|
|  | 54 | } | 
|---|
|  | 55 | #endif | 
|---|
|  | 56 |  | 
|---|
|  | 57 | #include "versionos2.h" | 
|---|
|  | 58 | #include "unicode.h" | 
|---|
|  | 59 |  | 
|---|
|  | 60 | #endif | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.