gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 49852efddf03e96c2ebc36a0901426365e0348c4 parent 2d0ad14393038e5177e99a1d4c740dbf6a1f996f Author: Toxa <untoxa@mail.ru> Date: Thu, 9 Dec 2021 22:21:08 +0300 #define bool _Bool only for SDCC Diffstat:
| M | gbdk-lib/include/stdbool.h | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/gbdk-lib/include/stdbool.h b/gbdk-lib/include/stdbool.h @@ -29,11 +29,19 @@ #ifndef __SDC51_STDBOOL_H #define __SDC51_STDBOOL_H 1 +#ifdef SDCC /* Define true and false of type _Bool in a way compatible with the preprocessor (see N 2229 for details). */ #define true ((_Bool)+1) #define false ((_Bool)+0) #define bool _Bool +#else +#define true 1 +#define false 0 + +#define bool unsigned char +#endif + #define __bool_true_false_are_defined 1 #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.