library: Start using semver

The library has never had a version number based on semver, so the
first tagged release will be 1.0.0 and it will define the first stable
API.

This versioning strategy makes it easier to detect incompatibilities
between library versions.

Information about semver 2.0.0: https://semver.org/
This commit is contained in:
Antonio Niño Díaz 2023-05-12 00:01:37 +01:00
parent 64768e92d8
commit 9e31687288

View File

@ -27,6 +27,19 @@ extern "C" {
#include <nf_text.h>
#include <nf_tiledbg.h>
/// Major version of NightFox's Lib
#define NF_LIB_MAJOR (1)
/// Minor version of NightFox's Lib
#define NF_LIB_MINOR (0)
/// Patch version of NightFox's Lib
#define NF_LIB_PATCH (0)
/// Full version of NightFox's Lib
#define NF_LIB_VERSION ((NF_LIB_MAJOR << 16) | (NF_LIB_MINOR << 8) | (NF_LIB_PATCH))
/// String with the version of NightFox's Lib
#define NF_LIB_VERSION_STRING "1.0.0"
#endif // NF_LIB_H__
#ifdef __cplusplus