Skip to content

Commit c628309

Browse files
committed
Un-nest check_ver macro
RGBDS 0.4.2 made those invalid
1 parent 0937be7 commit c628309

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

structs.asm

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,19 @@ TMP equs STRSUB("{\1}", 2, STRLEN("{\1}") - 1)
6666
ENDC
6767
ENDM
6868

69+
check_ver: MACRO
70+
IF \1 != \4 || \2 > \5 || \3 > \6
71+
PURGE EXPECTED_VERSION
72+
ENDC
73+
ENDM
6974

7075
; rgbds_structs_version version_string
7176
; Call with the expected version string to ensure you're using a compatible version
7277
; Example: rgbds_structs_version 1.0.0
7378
rgbds_structs_version: MACRO
74-
CURRENT_VERSION equs "1,2,1"
79+
CURRENT_VERSION equs "1,3,0"
7580
EXPECTED_VERSION equs "\1"
7681
strreplace EXPECTED_VERSION, ".", "\,"
77-
check_ver: MACRO
78-
IF \1 != \4 || \2 > \5 || \3 > \6
79-
PURGE EXPECTED_VERSION
80-
ENDC
81-
ENDM
8282

8383
CHECK_VER_CALL equs "check_ver {EXPECTED_VERSION},{CURRENT_VERSION}"
8484
CHECK_VER_CALL

0 commit comments

Comments
 (0)