mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
3648afda16
New MACRO and DEF syntax
19 lines
528 B
NASM
19 lines
528 B
NASM
DEF MAJOR EQU 0
|
|
DEF MINOR EQU 5
|
|
DEF PATCH EQU 2
|
|
|
|
MACRO wrong_rgbds
|
|
fail "pokecrystal requires rgbds v0.5.2 or newer."
|
|
ENDM
|
|
|
|
IF !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
|
|
wrong_rgbds
|
|
ELSE
|
|
IF (__RGBDS_MAJOR__ < MAJOR) || \
|
|
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ < MINOR) || \
|
|
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ == MINOR && __RGBDS_PATCH__ < PATCH) || \
|
|
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ == MINOR && __RGBDS_PATCH__ == PATCH && DEF(__RGBDS_RC__))
|
|
wrong_rgbds
|
|
ENDC
|
|
ENDC
|