From e20b80e65cdb67ca5558745399ecff25b0a88bd8 Mon Sep 17 00:00:00 2001 From: Date: Thu, 11 Feb 2016 20:15:19 -0500 Subject: [PATCH] [RSP] Try to introduce a new type for Booleans. --- Source/RSP/Types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/RSP/Types.h b/Source/RSP/Types.h index 9b8b4731f..379317dac 100644 --- a/Source/RSP/Types.h +++ b/Source/RSP/Types.h @@ -35,6 +35,17 @@ */ typedef void(*p_func)(void); +/* + * `BOOL` is Windows-specific so is going to tend to be avoided. + * `int` is the exact replacement. + * + * However, saying "int" all the time for true/false is a little ambiguous. + * + * Maybe in the future, with C++ (or C99) rewrites, we can switch to `bool`. + * Until then, a simple type definition will help emphasize true/false logic. + */ +typedef int Boolean; + typedef union tagUWORD { int32_t W; uint32_t UW;