diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-08 07:36:47 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-08 07:36:47 +0330 |
commit | 65f7f06d010e705d70f47db48b371f81d09914ea (patch) | |
tree | 93bc674142eb91ec603a8c3b33e690828fb1b1de /src/utils/type.c | |
parent | c2939352858f8471fb69ae629948a259552231bc (diff) |
add support for tcc
Diffstat (limited to 'src/utils/type.c')
-rw-r--r-- | src/utils/type.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/type.c b/src/utils/type.c index dea08ef..a46be5a 100644 --- a/src/utils/type.c +++ b/src/utils/type.c @@ -3,6 +3,8 @@ #include <assert.h> void checkTypes() { + assert(sizeof(bool) == (8 / 8)); + assert(sizeof(i8) == (8 / 8)); assert(sizeof(i16) == (16 / 8)); assert(sizeof(i32) == (32 / 8)); @@ -13,9 +15,10 @@ void checkTypes() { assert(sizeof(u32) == (32 / 8)); assert(sizeof(u64) == (64 / 8)); +#ifdef FLOAT_16_SUPPORT assert(sizeof(f16) == (16 / 8)); +#endif assert(sizeof(f32) == (32 / 8)); assert(sizeof(f64) == (64 / 8)); assert(sizeof(f128) == (128 / 8)); } - |