Typedef works for simple case
This commit is contained in:
@@ -280,6 +280,7 @@ gen_ast(Ast *ast){
|
||||
else if(sym->type == type_type){
|
||||
gen("typedef ");
|
||||
gen_simple_decl(sym->type_val, node->name);
|
||||
gen(";");
|
||||
}
|
||||
else{
|
||||
parsing_error(node->pos, "C_Codegen: Unhandled type of constant expression");
|
||||
|
||||
Reference in New Issue
Block a user