Add %s support for arrays and slices of bytes
This commit is contained in:
1 parent
913eac13b1
commit
87956676f5
3 files changed
+39
-10
No files matched your search
@@ -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; }
|
||||
|
||||
Reference in new issue
Block a user