Ported to Linux!

This commit is contained in:
Krzosa Karol
2022-10-09 12:23:38 +02:00
parent 0637a32655
commit ee6f8114ee
5 changed files with 62 additions and 19 deletions

View File

@@ -794,9 +794,14 @@ compile_to_c_code(){
#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>
#ifndef Panic
#define Panic(...) (*(volatile int *)0 = 0)
#endif
#ifndef Assert
#define Assert(x) do{if(!(x))__debugbreak();}while(0)
#define Assert(x) do{if(!(x))Panic();}while(0)
#endif
#ifndef AssertMessage