Refactor the using of bool type

This commit is contained in:
2022-06-09 16:29:10 +03:00
parent 5a8a7ee6ef
commit af5b89a2f4
22 changed files with 950 additions and 950 deletions
+2 -2
View File
@@ -31,8 +31,8 @@
# define nullptr ((void*)0)
#endif
#define true ((_Bool)1)
#define false ((_Bool)0)
#define true ((bool)1)
#define false ((bool)0)
#define abs(v) _Generic((v), ldbl_t: fabsl, dbl_t: fabs, fl_t: fabsf)(v)
+1 -1
View File
@@ -9,7 +9,7 @@
#define is_permissible(T) (sizeof(void*) >= sizeof(T) && _Alignof(void*) >= _Alignof(T))
typedef union {
void* ptr; _Bool b;
void* ptr; bool b;
str_t s; arr_t a; list_t l;
map_t m; set_t vs;
u8_t u8; u16_t u16; u32_t u32; u64_t u64;