Type info uses slices now! Fixed a case of slice needing to have a completed type

This commit is contained in:
Krzosa Karol
2023-03-29 10:22:43 +02:00
parent cb630951fd
commit 7dcd53587e
6 changed files with 24 additions and 22 deletions

View File

@@ -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
*/