From 65f7f06d010e705d70f47db48b371f81d09914ea Mon Sep 17 00:00:00 2001 From: A404M Date: Tue, 8 Apr 2025 07:36:47 +0330 Subject: add support for tcc --- src/utils/type.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/utils/type.c') 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 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)); } - -- cgit v1.2.3