Type info uses slices now! Fixed a case of slice needing to have a completed type
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
|
||||
/*
|
||||
Any :: struct
|
||||
data: *void
|
||||
type: Type
|
||||
@@ -43,10 +43,10 @@ Type_Info :: struct
|
||||
|
||||
base_type: Type
|
||||
array_size: S64
|
||||
struct_member_count: S64
|
||||
struct_members: *Type_Info_Struct_Member
|
||||
lambda_argument_count: S64
|
||||
struct_member_count: S64
|
||||
lambda_arguments: *Type_Info
|
||||
lambda_argument_count: S64
|
||||
lambda_return: Type
|
||||
|
||||
type_infos_len: S64 #foreign
|
||||
@@ -56,4 +56,5 @@ GetTypeInfo :: (type: Type): *Type_Info
|
||||
id := type->S64
|
||||
if id >= type_infos_len
|
||||
return 0
|
||||
return type_infos + id
|
||||
return type_infos + id
|
||||
*/
|
||||
Reference in New Issue
Block a user