source: trunk/include/misc.h@ 10

Last change on this file since 10 was 10, checked in by phaller, 26 years ago

Experimental support vor EMX/GCC 0.9d as build environment. IBM VAC++ 3 remains default. (SET CCENV=VAC3 or EMX)

File size: 1.1 KB
Line 
1/* $Id: misc.h,v 1.2 1999-05-27 15:17:58 phaller 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
48int SYSTEM WriteLog(char *tekst, ...);
49int SYSTEM WriteLogError(char *tekst, ...);
50void SYSTEM CheckVersion(ULONG version, char *modname);
51void 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.