Ported unicode conversions

This commit is contained in:
Krzosa Karol
2022-06-15 10:51:45 +02:00
parent aab89ffada
commit cdeebfb8f9
7 changed files with 75 additions and 32 deletions

View File

@@ -415,6 +415,14 @@ gen_ast(Ast *ast){
BREAK();
}
CASE(BREAK, Break){
unused(node);
gen("break;");
BREAK();
}
CASE(PASS, Pass){
unused(node);
gen("//pass");
@@ -695,6 +703,8 @@ typedef struct String{
S64 len;
}String;
#define LIT(x) (String){.str=(U8 *)x, .len=sizeof(x)-1}
#define assert(x) do{if(!(x))__debugbreak();}while(0)
#define assert_msg(x,...) assert(x)
)==");
#endif