comparison Plugins/Samples/Common/OrthancPluginCppWrapper.h @ 2269:8e53a2acdf21

convenience macro ORTHANC_PLUGINS_VERSION_IS_ABOVE
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 Feb 2017 22:04:41 +0100
parents ce5c13b95dac
children 7ef9207f31d4
comparison
equal deleted inserted replaced
2268:ce5c13b95dac 2269:8e53a2acdf21
41 #include <json/value.h> 41 #include <json/value.h>
42 #include <list> 42 #include <list>
43 #include <set> 43 #include <set>
44 44
45 45
46 #if (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER >= 2 || \ 46
47 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == 1 && \ 47 #define ORTHANC_PLUGINS_VERSION_IS_ABOVE(major, minor, revision) \
48 ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER >= 2)) 48 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER > major || \
49 (ORTHANC_PLUGINS_MINIMAL_MAJOR_NUMBER == major && \
50 (ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER > minor || \
51 (ORTHANC_PLUGINS_MINIMAL_MINOR_NUMBER == minor && \
52 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER >= revision))))
53
54
55 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 2, 0)
49 // The "OrthancPluginFindMatcher()" primitive was introduced in Orthanc 1.2.0 56 // The "OrthancPluginFindMatcher()" primitive was introduced in Orthanc 1.2.0
50 # define HAS_ORTHANC_PLUGIN_FIND_MATCHER 1 57 # define HAS_ORTHANC_PLUGIN_FIND_MATCHER 1
51 #else 58 #else
52 # define HAS_ORTHANC_PLUGIN_FIND_MATCHER 0 59 # define HAS_ORTHANC_PLUGIN_FIND_MATCHER 0
53 #endif 60 #endif