Improve undefined map assembler messages (#2196)

This commit is contained in:
Martin Griffin authored and GitHub committed 2025-10-29 21:34:03 -04:00
1 parent 1de27646d2
commit d1d5435487
9 files changed
+46 -19

No files matched your search

+4
View File
@@ -2,8 +2,12 @@
@ Takes a MAP constant and outputs the map group and map number as separate bytes
.macro map map_id:req
.ifdef \map_id
.byte \map_id >> 8 @ map group
.byte \map_id & 0xFF @ map num
.else
.error "undefined map (check for typos)"
.endif
.endm
@ Defines a map script. 'type' is any MAP_SCRIPT_* constant (see include/constants/map_scripts.h)