summaryrefslogtreecommitdiff
path: root/data/decorations
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2021-03-22 17:15:21 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2021-03-22 17:17:08 -0400
commit94057c7726995b0da484a39c22497876b7c22997 (patch)
tree4eb89c1047a1aea1806b52763f05ba2846be0676 /data/decorations
parentdbe2360ecd3eb11fd144168427e1323f5e1b2ec2 (diff)
Verify uneven list sizes with list_start, li, and assert_list_length macros
This was discussed in #815
Diffstat (limited to 'data/decorations')
-rw-r--r--data/decorations/names.asm54
1 files changed, 28 insertions, 26 deletions
diff --git a/data/decorations/names.asm b/data/decorations/names.asm
index 1e3a00140..db418b836 100644
--- a/data/decorations/names.asm
+++ b/data/decorations/names.asm
@@ -1,28 +1,30 @@
DecorationNames:
; entries correspond to constants/deco_constants.asm
- db "CANCEL@"
- db "PUT IT AWAY@"
- db "MAGNAPLANT@"
- db "TROPICPLANT@"
- db "JUMBOPLANT@"
- db "TOWN MAP@"
- db "NES@"
- db "SUPER NES@"
- db "NINTENDO 64@"
- db "VIRTUAL BOY@"
- db "GOLD TROPHY@"
- db "SILVER TROPHY@"
- db "SURF PIKACHU DOLL@"
- db " BED@"
- db " CARPET@"
- db " POSTER@"
- db " DOLL@"
- db "BIG @"
- db "FEATHERY@"
- db "PIKACHU@"
- db "PINK@"
- db "POLKADOT@"
- db "RED@"
- db "BLUE@"
- db "YELLOW@"
- db "GREEN@"
+ list_start DecorationNames
+ li "CANCEL"
+ li "PUT IT AWAY"
+ li "MAGNAPLANT"
+ li "TROPICPLANT"
+ li "JUMBOPLANT"
+ li "TOWN MAP"
+ li "NES"
+ li "SUPER NES"
+ li "NINTENDO 64"
+ li "VIRTUAL BOY"
+ li "GOLD TROPHY"
+ li "SILVER TROPHY"
+ li "SURF PIKACHU DOLL"
+ li " BED"
+ li " CARPET"
+ li " POSTER"
+ li " DOLL"
+ li "BIG "
+ li "FEATHERY"
+ li "PIKACHU"
+ li "PINK"
+ li "POLKADOT"
+ li "RED"
+ li "BLUE"
+ li "YELLOW"
+ li "GREEN"
+ assert_list_length NUM_DECO_NAMES