Replace bool, true and false with aliases
This commit is contained in:
@@ -77,11 +77,6 @@ def make_array(user_datatypes: Dict[CDataType, ArrayData] = {}):
|
||||
array_typename="VoidPArray",
|
||||
)
|
||||
continue
|
||||
elif _type == CType.BOOL:
|
||||
datatypes[_type.value] = ArrayData(
|
||||
array_typename="BoolArray",
|
||||
)
|
||||
continue
|
||||
|
||||
type_title = _type.value.title()
|
||||
datatypes[_type.value] = ArrayData(
|
||||
|
@@ -8,7 +8,7 @@
|
||||
// MSVC Spectre mitigation warnings
|
||||
u64 to_copy = src->count < dst->capacity ? src->count : dst->capacity;
|
||||
u64 item_index = 0;
|
||||
bool running = true;
|
||||
b32 running = true;
|
||||
while (running) {{
|
||||
item = wapp_{Tlower}_array_get(src, item_index);
|
||||
++item_index;
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// MSVC Spectre mitigation warnings
|
||||
u64 items_to_add = other->count;
|
||||
u64 item_index = 0;
|
||||
bool running = true;
|
||||
b32 running = true;
|
||||
while (running) {{
|
||||
item = wapp_{Tlower}_array_get(other, item_index);
|
||||
++item_index;
|
||||
|
@@ -9,7 +9,7 @@ from codegen.utils import convert_to_relative
|
||||
|
||||
class CType(Enum):
|
||||
VOID = "void"
|
||||
BOOL = "bool"
|
||||
BOOL = "b32"
|
||||
CHAR = "char"
|
||||
C8 = "c8"
|
||||
C16 = "c16"
|
||||
|
Reference in New Issue
Block a user