The member called name of a struct, or null. Unlike get_field in Basic it does not look inside using members.
get_struct_field_info :: (
info: *Type_Info_Struct,
name: string
) -> *Type_Info_Struct_Member
Parameters
- info: *Type_Info_Struct
- name: string
Returns
- *Type_Info_Struct_Member
Point :: struct { x: int; y: int; }
info := cast(*Type_Info_Struct) type_info(Point);
assert(get_struct_field_info(info, "y") != null);
assert(get_struct_field_info(info, "z") == null);