mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 18:52:07 +00:00
Define __RGBDS_VERSION__ as the output of rgbasm --version (sans "rgbasm")
Fixes #824
This commit is contained in:
@@ -1272,6 +1272,7 @@ The following symbols are defined by the assembler:
|
||||
.It Dv __RGBDS_MINOR__ Ta Ic EQU Ta Minor version number of RGBDS
|
||||
.It Dv __RGBDS_PATCH__ Ta Ic EQU Ta Patch version number of RGBDS
|
||||
.It Dv __RGBDS_RC__ Ta Ic EQU Ta Release candidate ID of RGBDS, not defined for final releases
|
||||
.It Dv __RGBDS_VERSION__ Ta Ic EQUS Ta Version of RGBDS, as printed by Ql rgbasm --version
|
||||
.El
|
||||
.Pp
|
||||
The current time values will be taken from the
|
||||
|
||||
@@ -774,6 +774,7 @@ void sym_Init(time_t now)
|
||||
addString("__UTC_HOUR__", removeLeadingZeros(savedHOUR));
|
||||
addString("__UTC_MINUTE__", removeLeadingZeros(savedMINUTE));
|
||||
addString("__UTC_SECOND__", removeLeadingZeros(savedSECOND));
|
||||
addString("__RGBDS_VERSION__", get_package_version_string());
|
||||
#undef addString
|
||||
|
||||
labelScope = NULL;
|
||||
|
||||
Reference in New Issue
Block a user