Mercurial > hg > orthanc
diff Plugins/Engine/OrthancPlugins.h @ 2137:595cf22b3e7e
safety checks of macros
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 15:07:50 +0100 |
parents | dd609a99d39a |
children | a3a65de1840f |
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.h Wed Nov 09 14:08:05 2016 +0100 +++ b/Plugins/Engine/OrthancPlugins.h Wed Nov 09 15:07:50 2016 +0100 @@ -34,6 +34,11 @@ #include "PluginsErrorDictionary.h" +#if !defined(ORTHANC_ENABLE_PLUGINS) +# error The macro ORTHANC_ENABLE_PLUGINS must be defined +#endif + + #if ORTHANC_ENABLE_PLUGINS != 1 #include <boost/noncopyable.hpp>