From 65dc84429215eb936725f2af8cee932142720914 Mon Sep 17 00:00:00 2001 From: flagarde Date: Sat, 11 May 2024 23:13:26 +0800 Subject: [PATCH] Fix --- include/Khaos/VersionMacros.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/Khaos/VersionMacros.h b/include/Khaos/VersionMacros.h index 8239033..63847cd 100644 --- a/include/Khaos/VersionMacros.h +++ b/include/Khaos/VersionMacros.h @@ -41,7 +41,7 @@ * #define KHAOS_DEFINE_name_VERSION_PRIVATE() SET_VERSION(2,3,4,5) * \endcode */ -#define SET_VERSION(major, minor, patch, tweak) ((((major)*1ULL % (1<<16)) << 48) + (((minor)*1ULL % (1<<16)) << 32) + (((patch)*1ULL % (1<<16)) << 16) + ((tweak)*1ULL % (1<<16))) +#define SET_VERSION(major, minor, patch, tweak) ((((major)*1ULL % (1<<16)) << 48) + (((minor)*1ULL % (1<<16)) << 32) + (((patch)*1ULL % (1<<16)) << 16) + ((tweak)*1ULL % (1<<16))) /* //NOSONAR */ /** \hideinitializer * \brief Get the major version numbers. @@ -49,7 +49,7 @@ * * \note Value can be directly used in both preprocessor and compiler expressions for comparison to other similarly defined values. */ -#define GET_VERSION_MAJOR(version) ((((KHAOS_DEFINE_##version##_VERSION_PRIVATE()) * 1ULL) >> 48) % (1<<16)) /* //NOSONAR */ +#define GET_VERSION_MAJOR(name) ((((KHAOS_DEFINE_##name##_VERSION_PRIVATE()) * 1ULL) >> 48) % (1<<16)) /* //NOSONAR */ /** \hideinitializer * \brief Get the minor version numbers. @@ -57,7 +57,7 @@ * * \note Value can be directly used in both preprocessor and compiler expressions for comparison to other similarly defined values. */ -#define GET_VERSION_MINOR(version) ((((KHAOS_DEFINE_##version##_VERSION_PRIVATE()) * 1ULL) >> 32) % (1<<16)) /* //NOSONAR */ +#define GET_VERSION_MINOR(name) ((((KHAOS_DEFINE_##name##_VERSION_PRIVATE()) * 1ULL) >> 32) % (1<<16)) /* //NOSONAR */ /** \hideinitializer * \brief Get the patch version numbers. @@ -65,7 +65,7 @@ * * \note Value can be directly used in both preprocessor and compiler expressions for comparison to other similarly defined values. */ -#define GET_VERSION_PATCH(version) ((((KHAOS_DEFINE_##version##_VERSION_PRIVATE()) * 1ULL) >> 16) % (1<<16)) /* //NOSONAR */ +#define GET_VERSION_PATCH(name) ((((KHAOS_DEFINE_##name##_VERSION_PRIVATE()) * 1ULL) >> 16) % (1<<16)) /* //NOSONAR */ /** \hideinitializer * \brief Get the tweak version numbers. @@ -73,6 +73,6 @@ * * \note Value can be directly used in both preprocessor and compiler expressions for comparison to other similarly defined values. */ -#define GET_VERSION_TWEAK(version) (((KHAOS_DEFINE_##version##_VERSION_PRIVATE()) * 1ULL) % (1<<16)) /* //NOSONAR */ +#define GET_VERSION_TWEAK(name) (((KHAOS_DEFINE_##name##_VERSION_PRIVATE()) * 1ULL) % (1<<16)) /* //NOSONAR */ #endif /* KHAOS_VERSIONMACROS_H_ */