2022-06-06 14:25:42 -07:00
|
|
|
DEF MAJOR EQU 0
|
|
|
|
DEF MINOR EQU 5
|
|
|
|
DEF PATCH EQU 2
|
2020-04-17 07:59:01 -07:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
MACRO wrong_rgbds
|
2021-11-23 17:14:08 -08:00
|
|
|
fail "pokecrystal requires rgbds v0.5.2 or newer."
|
2021-04-19 13:31:37 -07:00
|
|
|
ENDM
|
|
|
|
|
|
|
|
IF !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
|
|
|
|
wrong_rgbds
|
|
|
|
ELSE
|
|
|
|
IF (__RGBDS_MAJOR__ < MAJOR) || \
|
2020-04-17 07:59:01 -07:00
|
|
|
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ < MINOR) || \
|
2021-04-19 13:31:37 -07:00
|
|
|
(__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
|