Change is_utf16 field to encoding and use an enum

This commit is contained in:
gingerBill committed 2025-08-05 15:12:54 +01:00
1 parent eae43f1225
commit af3184adc9
10 files changed
+33 -13

No files matched your search

+1 -1
View File
@@ -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)