shithub: rgbds

Download patch

ref: bdad1499fe326fb0b76717255b32026494c7daa0
parent: 1f5ca39559d15895df8605e631a8581f9387bf61
parent: 0759c98d913e3d4d21207a8886a319c85add2041
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Apr 3 07:58:53 EDT 2020

Merge branch 'release'

--- a/include/version.h
+++ b/include/version.h
@@ -11,7 +11,7 @@
 
 #define PACKAGE_VERSION_MAJOR (0)
 #define PACKAGE_VERSION_MINOR (3)
-#define PACKAGE_VERSION_PATCH (9)
+#define PACKAGE_VERSION_PATCH (10)
 
 const char *get_package_version_string(void);
 
--- a/src/asm/symbol.c
+++ b/src/asm/symbol.c
@@ -566,6 +566,10 @@
 
 	_RSSymbol->isBuiltin = true;
 
+	sym_AddEqu("__RGBDS_MAJOR__", PACKAGE_VERSION_MAJOR);
+	sym_AddEqu("__RGBDS_MINOR__", PACKAGE_VERSION_MINOR);
+	sym_AddEqu("__RGBDS_PATCH__", PACKAGE_VERSION_PATCH);
+
 	time_t now = time(NULL);
 
 	if (now == (time_t)-1) {
--- /dev/null
+++ b/test/asm/version.asm
@@ -1,0 +1,1 @@
+PRINTT "RGBDS version {__RGBDS_MAJOR__}.{__RGBDS_MINOR__}.{__RGBDS_PATCH__}\n"
--- /dev/null
+++ b/test/asm/version.out
@@ -1,0 +1,1 @@
+RGBDS version $0.$3.$A