Relative pointers

This commit is contained in:
gingerBill
2020-05-15 17:37:00 +01:00
parent 8b066b2456
commit ff92eb9112
14 changed files with 534 additions and 40 deletions
+12
View File
@@ -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);
}
}