Skip to content

Commit

Permalink
Update VersionMacros.h
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde authored May 10, 2024
1 parent 92f9289 commit 460fc49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/Khaos/VersionMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,30 @@
*
* \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_VERSION_##version##_PRIVATE()) * 1ULL) >> 48) % 65536) //NOSONAR
#define GET_VERSION_MAJOR(version) ((((KHAOS_VERSION_##version##_PRIVATE()) * 1ULL) >> 48) % 65536) /* //NOSONAR */

/** \hideinitializer
* \brief Get standard minor version numbers.
* \param[in] version The standard version number.
*
* \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_VERSION_##version##_PRIVATE()) * 1ULL) >> 32) % 65536) //NOSONAR
#define GET_VERSION_MINOR(version) ((((KHAOS_VERSION_##version##_PRIVATE()) * 1ULL) >> 32) % 65536) /* //NOSONAR */

/** \hideinitializer
* \brief Get standard patch version numbers.
* \param[in] version The standard version number.
*
* \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_VERSION_##version##_PRIVATE()) * 1ULL) >> 16) % 65536) //NOSONAR
#define GET_VERSION_PATCH(version) ((((KHAOS_VERSION_##version##_PRIVATE()) * 1ULL) >> 16) % 65536) /* //NOSONAR */

/** \hideinitializer
* \brief Get standard tweak version numbers.
* \param[in] version The standard version number.
*
* \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_VERSION_##version##_PRIVATE()) * 1ULL) % 65536) //NOSONAR
#define GET_VERSION_TWEAK(version) (((KHAOS_VERSION_##version##_PRIVATE()) * 1ULL) % 65536) /* //NOSONAR */

#endif /* KHAOS_VERSIONMACROS_H_ */

0 comments on commit 460fc49

Please sign in to comment.