Add %s support for arrays and slices of bytes

This commit is contained in:
gingerBill
2020-11-20 16:01:16 +00:00
parent 913eac13b1
commit 87956676f5
3 changed files with 39 additions and 10 deletions
+8
View File
@@ -218,6 +218,14 @@ is_unsigned :: proc(info: ^Type_Info) -> bool {
return false;
}
is_byte :: proc(info: ^Type_Info) -> bool {
if info == nil { return false; }
#partial switch i in type_info_base(info).variant {
case Type_Info_Integer: return info.size == 1;
}
return false;
}
is_integer :: proc(info: ^Type_Info) -> bool {
if info == nil { return false; }