diff options
Diffstat (limited to 'includes/Cmm.h')
-rw-r--r-- | includes/Cmm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/Cmm.h b/includes/Cmm.h index 9b7a4e4608..0623c3eeb6 100644 --- a/includes/Cmm.h +++ b/includes/Cmm.h @@ -50,6 +50,7 @@ CInt has the same size as an int in C on this platform CLong has the same size as a long in C on this platform + CBool has the same size as a bool in C on this platform --------------------------------------------------------------------------- */ @@ -95,6 +96,8 @@ #error Unknown long size #endif +#define CBool bits8 + #define F_ float32 #define D_ float64 #define L_ bits64 @@ -229,7 +232,7 @@ * Note the syntax is slightly different to the C version of this macro. */ #ifdef DEBUG -#define IF_DEBUG(c,s) if (RtsFlags_DebugFlags_##c(RtsFlags) != 0::I32) { s; } +#define IF_DEBUG(c,s) if (RtsFlags_DebugFlags_##c(RtsFlags) != 0::CBool) { s; } #else #define IF_DEBUG(c,s) /* nothing */ #endif |