2020-04-17 14:59:01 +00:00
|
|
|
MAJOR EQU 0
|
2021-04-19 20:31:37 +00:00
|
|
|
MINOR EQU 5
|
2021-05-09 16:26:28 +00:00
|
|
|
PATCH EQU 1
|
2020-04-17 14:59:01 +00:00
|
|
|
|
2021-04-19 20:31:37 +00:00
|
|
|
wrong_rgbds: MACRO
|
2021-05-09 16:26:28 +00:00
|
|
|
fail "pokecrystal requires rgbds v0.5.1 or newer."
|
2021-04-19 20:31:37 +00:00
|
|
|
ENDM
|
|
|
|
|
|
|
|
IF !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
|
|
|
|
wrong_rgbds
|
|
|
|
ELSE
|
|
|
|
IF (__RGBDS_MAJOR__ < MAJOR) || \
|
2020-04-17 14:59:01 +00:00
|
|
|
(__RGBDS_MAJOR__ == MAJOR && __RGBDS_MINOR__ < MINOR) || \
|
2021-04-19 20:31:37 +00: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
|