Add multi pointers to core

This commit is contained in:
gingerBill
2021-08-21 23:16:14 +01:00
parent 932f330a51
commit 18a0fa02c5
7 changed files with 111 additions and 33 deletions
+6 -1
View File
@@ -74,6 +74,9 @@ Type_Info_Type_Id :: struct {};
Type_Info_Pointer :: struct {
elem: ^Type_Info, // nil -> rawptr
};
Type_Info_Multi_Pointer :: struct {
elem: ^Type_Info,
};
Type_Info_Procedure :: struct {
params: ^Type_Info, // Type_Info_Tuple
results: ^Type_Info, // Type_Info_Tuple
@@ -184,6 +187,7 @@ Type_Info :: struct {
Type_Info_Any,
Type_Info_Type_Id,
Type_Info_Pointer,
Type_Info_Multi_Pointer,
Type_Info_Procedure,
Type_Info_Array,
Type_Info_Enumerated_Array,
@@ -214,6 +218,7 @@ Typeid_Kind :: enum u8 {
Any,
Type_Id,
Pointer,
Multi_Pointer,
Procedure,
Array,
Enumerated_Array,
@@ -340,7 +345,7 @@ Context :: struct {
Raw_String :: struct {
data: ^byte,
data: [^]byte,
len: int,
}