shithub: pokered

Download patch

ref: b1b084334c6f05e1253acae7ba65c8163d567bcf
parent: 1439ba6f2a2f94f7a4314c693246519cc383dbf2
author: yenatch <yenatch@gmail.com>
date: Fri Feb 14 14:35:38 EST 2014

Let rgbasm handle undefined version constants.

--- a/blue.asm
+++ b/blue.asm
@@ -1,2 +1,1 @@
 _BLUE EQU 1
-_RED  EQU 0
--- 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"
 
--- a/red.asm
+++ b/red.asm
@@ -1,2 +1,1 @@
-_RED  EQU 1
-_BLUE EQU 0
+_RED EQU 1
--- /dev/null
+++ b/version.asm
@@ -1,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
+