Core Compiler: Fix type incomplete polymorph, work on RTS

This commit is contained in:
Krzosa Karol
2023-04-18 16:23:36 +02:00
parent 4ecb329033
commit bea10a621e
6 changed files with 73 additions and 36 deletions

View File

@@ -119,6 +119,8 @@ typedef double F64;
#define F64MAX DBL_MAX
#define F64MIN DBL_MIN
#include <stdio.h>
#define api
#define CORE_Static static
#define global static
@@ -126,7 +128,14 @@ typedef double F64;
do { \
if (!(x)) Breakpoint; \
} while (0)
#define assert_message(x, ...) assert(x)
#define assert_message(x, ...) \
do { \
if (!(x)) { \
printf(__VA_ARGS__); \
printf("\n"); \
Breakpoint; \
} \
} while (0)
#define invalid_codepath assert_message(0, "Invalid codepath")
#define invalid_return \
do { \