Skip to content
Snippets Groups Projects
Commit b1801a60 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Derive VERSION_INT from VERSION

Really, a single source of truth for the version major.minor number now.
parent e1f5b024
No related branches found
No related tags found
No related merge requests found
Pipeline #8814 failed
......@@ -35,7 +35,7 @@
/*************/
#define VERSION "3.21" // Version: Major.minor as 4-char string
#define VERSION_INT 321 // Version: Major and minor as increasing 3-decimal-digit integer value
#define VERSION_INT ((DEC_CHAR_TO_INT(VERSION[0]) * 100) + (DEC_CHAR_TO_INT(VERSION[2]) * 10) + DEC_CHAR_TO_INT(VERSION[3])) // Version as increasing 3-decimal-digit integer value
#define REVISION 'a' // Revision: lowercase letter
#define VERSION_NUM (((VERSION_INT) * 100) + (tolower(REVISION) - 'a'))
#define VERSION_HEX (((VERSION_INT / 100) * 0x10000) + (((VERSION_INT % 100) / 10) * 0x1000) + ((VERSION_INT % 10) * 0x100) + (tolower(REVISION) - 'a'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment