source: trunk/include/misc.h@ 25

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

Fix: minor build glitch in debug build

File size: 1.2 KB
Line 
1/* $Id: misc.h,v 1.6 1999-06-01 15:46:21 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/* enable support for the _interrupt() statement */
18#if (defined(__IBMCPP__) || defined(__IBMC__))
19# include <builtin.h>
20#endif
21
22#ifdef DEBUG
23 #define DebugInt3() _interrupt(3)
24#else
25 #define DebugInt3()
26#endif
27
28
29#ifdef DEBUG
30 #define dprintf(a) WriteLog a
31 #define eprintf(a) WriteLog a ; WriteLogError a
32 #define dassert(a, b) if(!(a)) WriteLogError b
33 #define dbgCheckObj(a) a->checkObject()
34#else
35 #define dprintf(a)
36 #define eprintf(a)
37 #define dassert(a, b)
38 #define dbgCheckObj(a)
39#endif
40
41
42#ifndef ULONG
43# define ULONG unsigned long
44#endif
45
46#ifndef HMODULE
47# define HMODULE ULONG
48#endif
49
50#ifndef SYSTEM
51# define SYSTEM _System
52#endif
53
54
55int SYSTEM WriteLog(char *tekst, ...);
56int SYSTEM WriteLogError(char *tekst, ...);
57void SYSTEM CheckVersion(ULONG version, char *modname);
58void SYSTEM CheckVersionFromHMOD(ULONG version, HMODULE hModule);
59
60#ifdef __cplusplus
61 }
62#endif
63
64
65#ifndef _OS2WIN_H
66 #include <win32type.h>
67#endif
68
69#include "versionos2.h"
70#include "unicode.h"
71
72
73#endif
Note: See TracBrowser for help on using the repository browser.