Add flags: Type_Info_Flags, to runtime.Type_Info

This commit is contained in:
gingerBill
2020-11-23 14:35:31 +00:00
parent 9e42cb1595
commit 0b30c3dc5a
6 changed files with 52 additions and 6 deletions
+7
View File
@@ -149,9 +149,16 @@ Type_Info_Relative_Slice :: struct {
base_integer: ^Type_Info,
};
Type_Info_Flag :: enum u8 {
Comparable = 0,
Simple_Compare = 1,
};
Type_Info_Flags :: distinct bit_set[Type_Info_Flag; u32];
Type_Info :: struct {
size: int,
align: int,
flags: Type_Info_Flags,
id: typeid,
variant: union {