From b1b084334c6f05e1253acae7ba65c8163d567bcf Mon Sep 17 00:00:00 2001 From: yenatch Date: Fri, 14 Feb 2014 19:35:38 -0500 Subject: Let rgbasm handle undefined version constants. --- blue.asm | 1 - constants.asm | 4 +--- red.asm | 3 +-- version.asm | 20 ++++++++++++++++++++ 4 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 version.asm diff --git a/blue.asm b/blue.asm index abbd4b0f..fe2d9452 100644 --- a/blue.asm +++ b/blue.asm @@ -1,2 +1 @@ _BLUE EQU 1 -_RED EQU 0 diff --git a/constants.asm b/constants.asm index 3496aa6a..85990c48 100644 --- a/constants.asm +++ b/constants.asm @@ -1,6 +1,4 @@ -_JAPAN EQU 0 -_GREEN EQU 0 -_YELLOW EQU 0 +INCLUDE "version.asm" INCLUDE "macros.asm" diff --git a/red.asm b/red.asm index 882bf66a..571f24e0 100644 --- a/red.asm +++ b/red.asm @@ -1,2 +1 @@ -_RED EQU 1 -_BLUE EQU 0 +_RED EQU 1 diff --git a/version.asm b/version.asm new file mode 100644 index 00000000..6f80aa1c --- /dev/null +++ b/version.asm @@ -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 + -- cgit v1.2.3