diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-09 02:42:35 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-04-09 02:42:35 +0330 |
commit | 90690900cedbbf8004f5b452dae04166818f99fc (patch) | |
tree | ea066c3378ac6460e394f3d9ebe90a1707ad0d18 /src/utils/type.h | |
parent | d76c19e0bea07806c49175c91d19eb38cfb230dd (diff) |
convert assert to static_assert for no unnecesary runtime overhead
Diffstat (limited to 'src/utils/type.h')
-rw-r--r-- | src/utils/type.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/type.h b/src/utils/type.h index ed0dd6f..4c61bc3 100644 --- a/src/utils/type.h +++ b/src/utils/type.h @@ -28,7 +28,8 @@ typedef long double f128; typedef u8 bool; #define false (bool)0 #define true (bool)1 + +#define static_assert _Static_assert #endif #endif -void checkTypes(); |