浏览该文件的文档. 19 #ifndef MODBUS_VERSION_H 20 #define MODBUS_VERSION_H 23 #define LIBMODBUS_VERSION_MAJOR (3) 26 #define LIBMODBUS_VERSION_MINOR (1) 29 #define LIBMODBUS_VERSION_MICRO (6) 32 #define LIBMODBUS_VERSION 3.1.6 36 #define LIBMODBUS_VERSION_STRING "3.1.6" 39 #define LIBMODBUS_VERSION_HEX ((LIBMODBUS_VERSION_MAJOR << 16) | \ 40 (LIBMODBUS_VERSION_MINOR << 8) | \ 41 (LIBMODBUS_VERSION_MICRO << 0)) 45 #define LIBMODBUS_VERSION_CHECK(major,minor,micro) \ 46 (LIBMODBUS_VERSION_MAJOR > (major) || \ 47 (LIBMODBUS_VERSION_MAJOR == (major) && \ 48 LIBMODBUS_VERSION_MINOR > (minor)) || \ 49 (LIBMODBUS_VERSION_MAJOR == (major) && \ 50 LIBMODBUS_VERSION_MINOR == (minor) && \ 51 LIBMODBUS_VERSION_MICRO >= (micro)))