mirror of
https://github.com/open-goal/jak-project
synced 2026-09-03 02:14:07 -04:00
Make buttons a bitfield and fix let bug (#399)
* make pad buttons bitfields * fix stupid let bug * update tests
This commit is contained in:
@@ -544,7 +544,6 @@ goos::Object bitfield_defs_print(const TypeSpec& type,
|
||||
result.push_back(pretty_print::to_symbol(fmt::format("new 'static '{}", type.print())));
|
||||
for (auto& def : defs) {
|
||||
if (def.enum_constant) {
|
||||
assert(false); // this is untested.
|
||||
result.push_back(
|
||||
pretty_print::to_symbol(fmt::format(":{} {}", def.field_name, *def.enum_constant)));
|
||||
} else if (def.is_signed) {
|
||||
|
||||
Reference in New Issue
Block a user