Versioning

All check macros are available in KapEngine 1.2.14

Because KapEngine have many versions, you can check your current version and make condition for specifics things in specifics versions.

To do that you just have to follow the code below :

#include "KapEngineVersion.hpp"
//you can also use this include : 
#include "KapEngine.hpp"
//since 1.2.15 you can do this :
#include "KapEngineSettings.hpp"

void myFunc() {
    #if KAPENGINE_VERSION == "1.2.14")
        //do something if KapEngine is in version 1.2.14
    #endif
    #if IS_KAPENGINE_VERSION(1, 214)
        //do something if KapEngine is in version 1.2.14
    #endif
    #if (IS_MAX_KAPENGINE_VERSION(1, 214))
        //do something if KapEngine is in version 1.2.14 maximum
    #endif
    #if IS_MIN_KAPENGINE_VERSION(1, 214)
        //do something if KapEngine is in version 1.2.14 minimum
    #endif
}

Last updated