Type as value initially working
This commit is contained in:
@@ -66,7 +66,8 @@ Type_Info :: struct
|
||||
type_infos_len: S32 #foreign
|
||||
type_infos : *Type_Info #foreign
|
||||
|
||||
get_type_info :: (id: Type_ID): *Type_Info
|
||||
get_type_info :: (type: Type): *Type_Info
|
||||
id := type->S32
|
||||
if id >= type_infos_len
|
||||
return 0
|
||||
return type_infos + id
|
||||
Reference in New Issue
Block a user