[riot-notifications] [RIOT-OS/RIOT] build system: add machine-readable RIOT_VERSION_CODE macro (#16765)

Martine Lenders notifications at github.com
Tue Aug 24 14:51:39 CEST 2021


@miri64 commented on this pull request.



> @@ -187,6 +187,19 @@ extern "C" {
  */
 #define IS_USED(module) IS_ACTIVE(module)
 
+/**
+ * @def         KERNEL_VERSION(mayor, minor, patch)
+ * @brief       Generates a 64 bit variable of a release version
+ *              Comparisons to this only apply to released branches
+ *
+ * @param[in]   a   Mayor version of the release
+ * @param[in]   b   Minor version of the release
+ * @param[in]   c   Patch level of the release
+ *
+ * @returns     A machine readable version variable
+ */
+#define KERNEL_VERSION(a, b, c) (((uint64_t)(a) << 32) + ((b) << 16) + (c))

Sorry, only now saw https://github.com/RIOT-OS/RIOT/pull/16765#issuecomment-903112927. So nvm.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16765#discussion_r694819661
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210824/e33e0661/attachment.htm>


More information about the notifications mailing list