mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-19 09:11:30 -07:00
Change is_utf16 field to encoding and use an enum
This commit is contained in:
@@ -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