Change type info table to be initializable constantly

[]Type_Info -> []^Type_Info
This commit is contained in:
gingerBill
2024-02-27 15:07:55 +00:00
parent cba8cb2201
commit 51edf01162
4 changed files with 95 additions and 919 deletions
+2 -2
View File
@@ -280,7 +280,7 @@ Typeid_Kind :: enum u8 {
// NOTE(bill): only the ones that are needed (not all types)
// This will be set by the compiler
type_table: []Type_Info
type_table: []^Type_Info
args__: []cstring
@@ -609,7 +609,7 @@ __type_info_of :: proc "contextless" (id: typeid) -> ^Type_Info #no_bounds_check
if n < 0 || n >= len(type_table) {
n = 0
}
return &type_table[n]
return type_table[n]
}
when !ODIN_NO_RTTI {