Complete rework, adding packages
This commit is contained in:
14
ccodegen.cpp
14
ccodegen.cpp
@@ -468,7 +468,7 @@ gen_ast(Ast *ast){
|
||||
gen(";");
|
||||
}
|
||||
}break;
|
||||
default: parsing_error(node->pos, "C_Codegen: Unhandled type %s of constant expression", docname(sym->type));
|
||||
default: compiler_error(node->pos, "C_Codegen: Unhandled type %s of constant expression", docname(sym->type));
|
||||
}
|
||||
|
||||
BREAK();
|
||||
@@ -574,15 +574,3 @@ compile_file(String filename){
|
||||
String result = compile_string(filecontent, filename);
|
||||
return result;
|
||||
}
|
||||
|
||||
typedef struct Custom_Data{
|
||||
S32 thing;
|
||||
}Custom_Data;
|
||||
|
||||
|
||||
typedef struct Slice{
|
||||
S64 len;
|
||||
void *data;
|
||||
}Slice;
|
||||
|
||||
Slice thing = (Slice){2, (Custom_Data []){(Custom_Data ){1}, (Custom_Data ){2}}};
|
||||
Reference in New Issue
Block a user