diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:33:05 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:44:41 -0400 |
| commit | 95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 (patch) | |
| tree | 5a7b79846bd7f07e40310da46b21873774a08ef7 /data/items/key_items.asm | |
| parent | Remove unused _GREEN TitleMons data (diff) | |
| download | pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.gz pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.xz pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.zip | |
Verify data table and name list sizes with assertion macros
Fixes #312
Diffstat (limited to 'data/items/key_items.asm')
| -rw-r--r-- | data/items/key_items.asm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/data/items/key_items.asm b/data/items/key_items.asm index aca8cf81..13a69ea4 100644 --- a/data/items/key_items.asm +++ b/data/items/key_items.asm @@ -17,6 +17,7 @@ ENDC ENDM KeyItemBitfield: + table_width 1, KeyItemBitfield key_item_bits \ FALSE, \ ; MASTER_BALL FALSE, \ ; ULTRA_BALL @@ -101,3 +102,4 @@ KeyItemBitfield: FALSE, \ ; MAX_ETHER FALSE, \ ; ELIXER FALSE ; MAX_ELIXER + assert_table_length (NUM_ITEMS + 7) / 8 |
