Verify data table and name list sizes with assertion macros

Fixes #312
This commit is contained in:
Rangi 2021-03-25 16:33:05 -04:00
parent e1f6bb5393
commit 95ec2cf039
139 changed files with 863 additions and 437 deletions

View file

@ -2,6 +2,7 @@
MapHSPointers:
; entries correspond to map ids
table_width 2, MapHSPointers
dw PalletTownHS
dw ViridianCityHS
dw PewterCityHS
@ -250,6 +251,7 @@ MapHSPointers:
dw NoHS
dw NoHS
dw NoHS
assert_table_length NUM_MAPS
dw -1 ; end
NoHS:
@ -257,6 +259,7 @@ NoHS:
MissableObjects:
; entries correspond to HS_* constants (see constants/hide_show_constants)
table_width 3, MissableObjects
; format: map id, object id, HIDE/SHOW
PalletTownHS:
@ -562,3 +565,4 @@ SeafoamIslandsB4FHS:
db SEAFOAM_ISLANDS_B4F, $02, HIDE
db SEAFOAM_ISLANDS_B4F, $03, SHOW
db $FF, $01, SHOW ; end
assert_table_length NUM_HS_OBJECTS + 1