comparison Plugins/Engine/OrthancPlugins.cpp @ 1579:b93c398f934d

check the size of the enumerations in the plugin engine
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 15:45:50 +0200
parents 09715095fc53
children 357c4bb15701
comparison
equal deleted inserted replaced
1578:09715095fc53 1579:b93c398f934d
170 } 170 }
171 171
172 172
173 OrthancPlugins::OrthancPlugins() 173 OrthancPlugins::OrthancPlugins()
174 { 174 {
175 if (sizeof(int32_t) != sizeof(OrthancPluginErrorCode)) 175 if (sizeof(int32_t) != sizeof(OrthancPluginErrorCode) ||
176 sizeof(int32_t) != sizeof(OrthancPluginHttpMethod) ||
177 sizeof(int32_t) != sizeof(_OrthancPluginService) ||
178 sizeof(int32_t) != sizeof(_OrthancPluginProperty) ||
179 sizeof(int32_t) != sizeof(OrthancPluginPixelFormat) ||
180 sizeof(int32_t) != sizeof(OrthancPluginContentType) ||
181 sizeof(int32_t) != sizeof(OrthancPluginResourceType) ||
182 sizeof(int32_t) != sizeof(OrthancPluginChangeType) ||
183 sizeof(int32_t) != sizeof(OrthancPluginCompressionType) ||
184 sizeof(int32_t) != sizeof(_OrthancPluginDatabaseAnswerType))
176 { 185 {
177 /* Sanity check of the compiler */ 186 /* Sanity check of the compiler */
178 throw OrthancException(ErrorCode_Plugin); 187 throw OrthancException(ErrorCode_Plugin);
179 } 188 }
180 189