Code: Select all
#define IRRLICHT_SDK_VERSION "1.5"
This is what I'd like to do:
Code: Select all
#if IRRLICHT_SDK_VERSION_MAJOR==1 && IRRLICHT_SDK_VER_MINOR==4
// 1.4 specific code
#elif IRRLICHT_SDK_VERSION_MAJOR==1 && IRRLICHT_SDK_VER_MINOR==5
// 1.5 specific code
#elif IRRLICHT_SDK_VERSION_MAJOR==1 && IRRLICHT_SDK_VER_MINOR>5
// svn trunk specific code (towards 1.6)
#endif
In addition to MAJOR and the MINOR macro, there should be version integer macro for the maintenance releases (like 1.5.1).
See this Wikipedia entry for some reference naming for the different parts of sdk version:
major.minor(.build(.revision)) or major.minor(.maintenance(.build)).
I propose this is fixed so that version 1.5.1 release gets these additional macros:
Code: Select all
#define IRRLICHT_SDK_VERSION_MAJOR 1
#define IRRLICHT_SDK_VERSION_MINOR 5
#define IRRLICHT_SDK_VERSION_MAINTENANCE 1