Add missing type stuff

This commit is contained in:
Krzosa Karol
2023-04-16 15:37:29 +02:00
parent 4f658c0c09
commit 556677c42b
3 changed files with 28 additions and 14 deletions

View File

@@ -4,6 +4,6 @@ call "..\misc\compile_setup.bat"
bld --dont_compile_core bld --dont_compile_core
cd build cd build
core_main.exe examples/game2d.core core_main.exe examples/game2d.core
bld --dont_compile_core --link=vendor/raylib/windows/raylibdll.lib rem bld --dont_compile_core --link=vendor/raylib/windows/raylibdll.lib
rem build\generated_main.exe rem build\generated_main.exe
cd .. cd ..

View File

@@ -180,16 +180,22 @@ CORE_Static String
get_type_postfix(Ast_Type *type) { get_type_postfix(Ast_Type *type) {
switch (type->kind) { switch (type->kind) {
case TYPE_F32: return "f"_s; break; case TYPE_F32: return "f"_s; break;
case TYPE_ULLONG:
case TYPE_U64: return "ULL"_s; break; case TYPE_U64: return "ULL"_s; break;
case TYPE_LLONG:
case TYPE_S64: return "LL"_s; break; case TYPE_S64: return "LL"_s; break;
case TYPE_U8:
case TYPE_UCHAR:
case TYPE_U16:
case TYPE_U32: return "U"_s; break;
case TYPE_SHORT:
case TYPE_LONG:
case TYPE_F64: case TYPE_F64:
case TYPE_S8: case TYPE_S8:
case TYPE_S16: case TYPE_S16:
case TYPE_S32: case TYPE_S32:
case TYPE_U8:
case TYPE_U16:
case TYPE_INT: case TYPE_INT:
case TYPE_U32:
case TYPE_CHAR: case TYPE_CHAR:
return ""_s; return ""_s;
break; break;

View File

@@ -8,8 +8,16 @@
case TYPE_S32: \ case TYPE_S32: \
case TYPE_S64: \ case TYPE_S64: \
case TYPE_CHAR: \ case TYPE_CHAR: \
case TYPE_LONG: \
case TYPE_LLONG: \
case TYPE_SHORT: \
case TYPE_INT case TYPE_INT
#define CASE_UINT \ #define CASE_UINT \
case TYPE_UINT: \
case TYPE_ULONG: \
case TYPE_ULLONG: \
case TYPE_USHORT: \
case TYPE_UCHAR: \
case TYPE_U8: \ case TYPE_U8: \
case TYPE_U16: \ case TYPE_U16: \
case TYPE_U32: \ case TYPE_U32: \