Make buttons a bitfield and fix let bug (#399)

* make pad buttons bitfields

* fix stupid let bug

* update tests
This commit is contained in:
water111
2021-04-29 20:25:45 -04:00
committed by GitHub
parent 70d93354eb
commit 56625bb0ee
15 changed files with 336 additions and 220 deletions
-1
View File
@@ -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) {