get_type_info

This commit is contained in:
Krzosa Karol
2022-06-18 23:39:46 +02:00
parent 071a8de6a4
commit 523760dc0a
3 changed files with 37 additions and 28 deletions

View File

@@ -833,7 +833,8 @@ typedef struct String{
gen_ast(it);
}
gen("Type_Info *type_infos = (Type_Info[]){");
genln("S32 type_infos_len = %d;", pctx->all_types.len);
genln("Type_Info *type_infos = (Type_Info[]){");
global_indent++;
For(pctx->all_types){
genln("{/*%Q*/.kind = %d, .size = %d, .align = %d, .is_unsigned = %s, .type_id = %d, ", typestring(it),