Add new plugin defines regarding the AMX Mod X version (#723)

* Add AMXX_VERSION_LOCAL define

* Add new defines regarding version of AMX Mod X

Added new defines: AMXX_VERSION_MAJOR_NUM and AMXX_VERSION_MINOR_NUM

* Rename AMXX_VERSION_LOCAL define

Define AMXX_VERSION_LOCAL was renamed to AMXX_VERSION_LOCAL_REV_NUM
This commit is contained in:
twisterniq 2019-10-17 18:55:05 +02:00 committed by Arkshine
parent 163afa041e
commit dafabc73c0

View File

@ -88,14 +88,17 @@ def output_version_headers():
#endif #endif
#define _amxmodx_version_included #define _amxmodx_version_included
#define AMXX_VERSION_TAG \"{tag}\" #define AMXX_VERSION_TAG \"{tag}\"
#define AMXX_VERSION_CSET \"{shorthash}\" #define AMXX_VERSION_CSET \"{shorthash}\"
#define AMXX_VERSION_MAJOR \"{major}\" #define AMXX_VERSION_MAJOR \"{major}\"
#define AMXX_VERSION_MINOR \"{minor}\" #define AMXX_VERSION_MAJOR_NUM {major}
#define AMXX_VERSION_RELEASE \"{release}\" #define AMXX_VERSION_MINOR \"{minor}\"
#define AMXX_VERSION_LOCAL_REV \"{count}\" #define AMXX_VERSION_MINOR_NUM {minor}
#define AMXX_VERSION {major}.{minor}{release} #define AMXX_VERSION_RELEASE \"{release}\"
#define AMXX_VERSION_NUM {version_num} #define AMXX_VERSION_LOCAL_REV_NUM {count}
#define AMXX_VERSION_LOCAL_REV \"{count}\"
#define AMXX_VERSION {major}.{minor}{release}
#define AMXX_VERSION_NUM {version_num}
stock const AMXX_VERSION_STR[] = "{fullstring}"; stock const AMXX_VERSION_STR[] = "{fullstring}";
""".format( """.format(