Change is_utf16 field to encoding and use an enum
This commit is contained in:
1 parent
eae43f1225
commit
af3184adc9
10 files changed
+33
-13
No files matched your search
@@ -127,7 +127,7 @@ parse_and_set_pointer_by_base_type :: proc(ptr: rawptr, str: string, type_info:
|
||||
}
|
||||
|
||||
case runtime.Type_Info_String:
|
||||
assert(!specific_type_info.is_utf16)
|
||||
assert(specific_type_info.encoding == .UTF_8)
|
||||
|
||||
if specific_type_info.is_cstring {
|
||||
cstr_ptr := (^cstring)(ptr)
|
||||
|
||||
Reference in new issue
Block a user