Decompile level (#3433)

This commit is contained in:
water111
2024-03-23 13:03:01 -04:00
committed by GitHub
parent 99866cec88
commit ffe01a352d
43 changed files with 9416 additions and 330 deletions
+1 -1
View File
@@ -1466,7 +1466,7 @@ goos::Object decompile_structure(const TypeSpec& type,
} else if (word.kind() == LinkedWord::EMPTY_PTR) {
field_defs_out.emplace_back(field.name(), pretty_print::to_symbol("'()"));
} else if (word.kind() == LinkedWord::TYPE_PTR) {
if (field.type() != TypeSpec("type")) {
if (!ts.tc(field.type(), TypeSpec("type"))) {
throw std::runtime_error(
fmt::format("Field {} in type {} offset {} had a reference to type {}, but the "
"type of the field is not type.",