Implement basic runtime type information

This allows for `runtime.println_any` to work!
This commit is contained in:
gingerBill
2023-07-25 00:33:43 +01:00
parent 28c97a9467
commit b934e4b564
8 changed files with 459 additions and 71 deletions
+1 -2
View File
@@ -267,8 +267,7 @@ gb_internal cgValue cg_build_builtin(cgProcedure *p, BuiltinProcId id, Ast *expr
pos = e->token.pos;
}
GB_PANIC("TODO(bill): cg_emit_source_code_location_as_global");
// return cg_emit_source_code_location_as_global(p, procedure, pos);
return cg_emit_source_code_location_as_global(p, procedure, pos);
} break;
case BuiltinProc_len: {