Core Compiler: Fix type incomplete polymorph, work on RTS
This commit is contained in:
11
base.cpp
11
base.cpp
@@ -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 { \
|
||||
|
||||
Reference in New Issue
Block a user