This commit is contained in:
Jeroen van Rijn
2023-03-28 20:23:08 +02:00
parent 3c493194c9
commit 0bd27381c3

View File

@@ -100,7 +100,7 @@ offset_of_selector :: proc(selector: $T) -> int ---
offset_of_member :: proc($T: typeid, member: $M) -> int ---
offset_of :: proc{offset_of_selector, offset_of_member}
// e.g. offset_of(T, "f"), where T can be the type instead of a variable
offset_of_by_string :: proc($T: typeid, member: string) -> ---
offset_of_by_string :: proc($T: typeid, member: string) -> int ---
type_of :: proc(x: expr) -> type ---
type_info_of :: proc($T: typeid) -> ^runtime.Type_Info ---