Compare commits

..

3 Commits

Author SHA1 Message Date
ISSOtm
0759c98d91 Increase version number to 0.3.10 2020-03-21 21:18:14 +01:00
ISSOtm
402ffbf0c5 Add test for version constants 2020-03-21 21:01:25 +01:00
ISSOtm
8191e5eb27 Define version symbols
Major blunder. That warrants a new release on its own...
2020-03-21 19:26:40 +01:00
5 changed files with 7 additions and 1 deletions

View File

@@ -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);

View File

@@ -788,6 +788,10 @@ void sym_Init(void)
p__LINE__Symbol = findsymbol("__LINE__", NULL);
p__LINE__Symbol->Callback = Callback__LINE__;
sym_AddEqu("__RGBDS_MAJOR__", PACKAGE_VERSION_MAJOR);
sym_AddEqu("__RGBDS_MINOR__", PACKAGE_VERSION_MINOR);
sym_AddEqu("__RGBDS_PATCH__", PACKAGE_VERSION_PATCH);
sym_AddSet("_RS", 0);
if (time(&now) != -1) {

1
test/asm/version.asm Normal file
View File

@@ -0,0 +1 @@
PRINTT "RGBDS version {__RGBDS_MAJOR__}.{__RGBDS_MINOR__}.{__RGBDS_PATCH__}\n"

0
test/asm/version.err Normal file
View File

1
test/asm/version.out Normal file
View File

@@ -0,0 +1 @@
RGBDS version $0.$3.$A