mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Relative pointers
This commit is contained in:
@@ -442,6 +442,18 @@ print_type :: proc(fd: os.Handle, ti: ^Type_Info) {
|
||||
os.write_byte(fd, ']');
|
||||
print_type(fd, info.elem);
|
||||
}
|
||||
|
||||
case Type_Info_Relative_Pointer:
|
||||
os.write_string(fd, "#relative(");
|
||||
print_type(fd, info.base_integer);
|
||||
os.write_string(fd, ") ");
|
||||
print_type(fd, info.pointer);
|
||||
|
||||
case Type_Info_Relative_Slice:
|
||||
os.write_string(fd, "#relative(");
|
||||
print_type(fd, info.base_integer);
|
||||
os.write_string(fd, ") ");
|
||||
print_type(fd, info.slice);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user