Let rgbasm handle undefined version constants.

This commit is contained in:
yenatch 2014-02-14 19:35:38 -05:00
parent 1439ba6f2a
commit b1b084334c
4 changed files with 22 additions and 6 deletions

View File

@ -1,2 +1 @@
_BLUE EQU 1
_RED EQU 0

View File

@ -1,6 +1,4 @@
_JAPAN EQU 0
_GREEN EQU 0
_YELLOW EQU 0
INCLUDE "version.asm"
INCLUDE "macros.asm"

View File

@ -1,2 +1 @@
_RED EQU 1
_BLUE EQU 0
_RED EQU 1

20
version.asm Normal file
View File

@ -0,0 +1,20 @@
if !def(_RED)
_RED EQU 0
endc
if !def(_BLUE)
_BLUE EQU 0
endc
if !def(_JAPAN)
_JAPAN EQU 0
endc
if !def(_GREEN)
_GREEN EQU 0
endc
if !def(_YELLOW)
_YELLOW EQU 0
endc