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
RevLine 
[25]1/* $Id: misc.h,v 1.6 1999-06-01 15:46:21 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
[25]17/* enable support for the _interrupt() statement */
18#if (defined(__IBMCPP__) || defined(__IBMC__))
19# include <builtin.h>
20#endif
21
[4]22#ifdef DEBUG
[13]23 #define DebugInt3() _interrupt(3)
[4]24#else
[13]25 #define DebugInt3()
[4]26#endif
27
28
29#ifdef DEBUG
[13]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()
[4]34#else
[13]35 #define dprintf(a)
36 #define eprintf(a)
37 #define dassert(a, b)
38 #define dbgCheckObj(a)
[4]39#endif
40
[17]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
[13]55int SYSTEM WriteLog(char *tekst, ...);
56int SYSTEM WriteLogError(char *tekst, ...);
[4]57void SYSTEM CheckVersion(ULONG version, char *modname);
58void SYSTEM CheckVersionFromHMOD(ULONG version, HMODULE hModule);
59
60#ifdef __cplusplus
61 }
62#endif
63
[13]64
65#ifndef _OS2WIN_H
66 #include <win32type.h>
67#endif
68
[4]69#include "versionos2.h"
70#include "unicode.h"
71
[17]72
[4]73#endif
Note: See TracBrowser for help on using the repository browser.