Adaptive Framework
0.9.0
|
Files | |
file | afw_version.h |
Adaptive Framework Version Information. | |
Macros | |
#define | AFW_VERSION_CHECK afw_version_check(AFW_VERSION_HEX) |
Version check against the version compiled against. More... | |
#define | AFW_VERSION_THROW_ERROR_SUPPLIED_HEX_VERSION_IF_NOT_COMPATIBLE(info, compiled_version, xctx) |
Throw error if AFW core is not compatible with the supplied version. More... | |
#define | AFW_VERSION_THROW_ERROR_IF_NOT_COMPATIBLE(id_z, xctx) |
Throw error if AFW core is not compatible with the version compiled against. More... | |
#define | AFW_VERSION_ABORT_IF_NOT_COMPATIBLE(id_z) |
Abort if AFW core is not compatible with the version compiled against. More... | |
Functions | |
unsigned int | afw_version () |
const afw_utf8_t * | afw_version_string () |
const afw_utf8_z_t * | afw_version_string_z () |
const afw_utf8_z_t * | afw_version_check (unsigned int version) |
Version check. More... | |
Adaptive Framework uses the semantic versioning scheme. See http://semver.org/.
AFW_VERSION_THROW_ERROR_IF_NOT_COMPATIBLE() or AFW_VERSION_ABORT_IF_NOT_COMPATIBLE should be executed early in the life of Adaptive Framework extensions and applications to ensure compatibility with Adaptive Framework Core (libafw).
#define AFW_VERSION_ABORT_IF_NOT_COMPATIBLE | ( | id_z | ) |
Abort if AFW core is not compatible with the version compiled against.
id_z | is a afw_utf8_z_t * that will be included in error message. |
Use AFW_VERSION_THROW_ERROR_IF_NOT_COMPATIBLE(xctx) instead if xctx is available.
Print error and abort() if this version of Adaptive Framework is not compatible with the version compiled against, as well as if any dependency are not the appropriate level.
Definition at line 119 of file afw_version.h.
#define AFW_VERSION_CHECK afw_version_check(AFW_VERSION_HEX) |
Version check against the version compiled against.
Definition at line 64 of file afw_version.h.
#define AFW_VERSION_THROW_ERROR_IF_NOT_COMPATIBLE | ( | id_z, | |
xctx | |||
) |
Throw error if AFW core is not compatible with the version compiled against.
id_z | is a afw_utf8_z_t * that will be included in error message. |
xctx | of caller. |
Throw an error if this version of Adaptive Framework is not compatible with the version compiled against, as well as if any dependency are not the appropriate level.
Definition at line 98 of file afw_version.h.
#define AFW_VERSION_THROW_ERROR_SUPPLIED_HEX_VERSION_IF_NOT_COMPATIBLE | ( | info, | |
compiled_version, | |||
xctx | |||
) |
Throw error if AFW core is not compatible with the supplied version.
info | will be included in error message. |
compiled_version | is AFW_VERSION_HEX to check against. |
xctx | of caller. |
Throw an error if this version of Adaptive Framework is not compatible with the compiled_version, as well as if any dependency are not the appropriate level.
Definition at line 76 of file afw_version.h.
unsigned int afw_version | ( | ) |
Return AFW_VERSION_HEX.
const afw_utf8_z_t* afw_version_check | ( | unsigned int | version | ) |
Version check.
version | (see AFW_VERSION_HEX in afw_version.h) |
Returns an error message if this version of Adaptive Framework is not compatible with the supplied version, as well as if any dependency is not the appropriate level.
const afw_utf8_t* afw_version_string | ( | ) |
Return Adaptive Framework version string.
const afw_utf8_z_t* afw_version_string_z | ( | ) |
Return Adaptive Framework version string as utf8_z.