pokecrystal-board/rgbdscheck.asm

17 lines
513 B
NASM
Raw Normal View History

MAJOR EQU 0
2022-10-02 19:03:53 -07:00
MINOR EQU 6
PATCH EQU 0
2022-10-02 19:03:53 -07:00
WRONG_RGBDS EQUS "fail \"pokecrystal requires rgbds v0.6.0 or newer.\""
2021-04-19 13:31:37 -07:00
IF !DEF(__RGBDS_MAJOR__) || !DEF(__RGBDS_MINOR__) || !DEF(__RGBDS_PATCH__)
2022-10-02 19:03:53 -07:00
WRONG_RGBDS
2021-04-19 13:31:37 -07:00
ELSE
IF (__RGBDS_MAJOR__ < MAJOR) || \
(__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__))
2022-10-02 19:03:53 -07:00
WRONG_RGBDS
2021-04-19 13:31:37 -07:00
ENDC
ENDC