Remove unused n from PQ; add reflect.is_bit_set

This commit is contained in:
Jeroen van Rijn
2022-08-18 18:00:25 +02:00
parent afec321db2
commit e40b3ad338
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -302,6 +302,11 @@ is_dynamic_map :: proc(info: ^Type_Info) -> bool {
_, ok := type_info_base(info).variant.(Type_Info_Map)
return ok
}
is_bit_set :: proc(info: ^Type_Info) -> bool {
if info == nil { return false }
_, ok := type_info_base(info).variant.(Type_Info_Bit_Set)
return ok
}
is_slice :: proc(info: ^Type_Info) -> bool {
if info == nil { return false }
_, ok := type_info_base(info).variant.(Type_Info_Slice)