18 #if !defined(OPENNURBS_VERSION_INC_) 19 #define OPENNURBS_VERSION_INC_ 21 #if !defined(OPENNURBS_VERSION_DEFINITION) 22 #error Do NOT include opennurbs_version.h in your code. Use ON::Version() instead. 45 #include "opennurbs_public_version.h" 53 #define OPENNURBS_VERSION_MAJOR RMA_VERSION_MAJOR 54 #define OPENNURBS_VERSION_MINOR RMA_VERSION_MINOR 63 #define OPENNURBS_VERSION_YEAR RMA_VERSION_YEAR 64 #define OPENNURBS_VERSION_MONTH RMA_VERSION_MONTH 65 #define OPENNURBS_VERSION_DAY_OF_MONTH RMA_VERSION_DATE 66 #define OPENNURBS_VERSION_HOUR RMA_VERSION_HOUR 67 #define OPENNURBS_VERSION_MINUTE RMA_VERSION_MINUTE 86 #define OPENNURBS_VERSION_BRANCH RMA_VERSION_BRANCH 95 #define OPENNURBS_GIT_REVISION_HASH RMA_GIT_REVISION_HASH_STRING 96 #define OPENNURBS_GIT_BRANCH_NAME RMA_GIT_BRANCH_NAME_STRING 103 #define OPENNURBS_VERSION_QUARTET_STRING RMA_VERSION_WITH_PERIODS_STRING 104 #define OPENNURBS_VERSION_QUARTET_WSTRING RMA_VERSION_WITH_PERIODS_WSTRING 105 #define OPENNURBS_VERSION_QUARTET_WITH_COMMAS VERSION_WITH_COMMAS 106 #define OPENNURBS_VERSION_QUARTET_WITH_PERIODS VERSION_WITH_PERIODS 119 #define ON_VERSION_NUMBER_FEBDAYS(year) \ 120 (((year) % 400) == 0 ? 29 : \ 121 (((year) % 100) == 0 ? 28 : \ 122 (((year) % 4) == 0 ? 29 : \ 136 #define ON_VERSION_NUMBER_DAYOFYEAR(year, month, day_of_month) \ 138 + ((month) >= 2 ? 31 : 0) \ 139 + ((month) >= 3 ? ON_VERSION_NUMBER_FEBDAYS(year) : 0) \ 140 + ((month) >= 4 ? 31 : 0) \ 141 + ((month) >= 5 ? 30 : 0) \ 142 + ((month) >= 6 ? 31 : 0) \ 143 + ((month) >= 7 ? 30 : 0) \ 144 + ((month) >= 8 ? 31 : 0) \ 145 + ((month) >= 9 ? 31 : 0) \ 146 + ((month) >= 10 ? 30 : 0) \ 147 + ((month) >= 11 ? 31 : 0) \ 148 + ((month) >= 12 ? 30 : 0) \ 151 #define ON_VERSION_NUMBER_TIME(year, month, day_of_month) \ 152 ((((year)-2000)*367) + (ON_VERSION_NUMBER_DAYOFYEAR(year,month,day_of_month))) 168 #define ON_VERSION_NUMBER_CTOR(major,minor,year,month,day_of_month,branch) \ 170 + ((((major)*0x080U + (minor)))*0x010000U \ 171 + ((ON_VERSION_NUMBER_TIME(year,month,day_of_month))))*0x04U \ 183 #define OPENNURBS_VERSION_NUMBER ON_VERSION_NUMBER_CTOR( \ 184 OPENNURBS_VERSION_MAJOR, OPENNURBS_VERSION_MINOR, \ 185 OPENNURBS_VERSION_YEAR, OPENNURBS_VERSION_MONTH, OPENNURBS_VERSION_DAY_OF_MONTH, \ 186 OPENNURBS_VERSION_BRANCH )