diff Plugins/Engine/OrthancPlugins.cpp @ 1578:09715095fc53

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 15:33:36 +0200
parents 904096e7367e
children b93c398f934d
line wrap: on
line diff
--- a/Plugins/Engine/OrthancPlugins.cpp	Tue Aug 25 15:10:45 2015 +0200
+++ b/Plugins/Engine/OrthancPlugins.cpp	Tue Aug 25 15:33:36 2015 +0200
@@ -172,6 +172,12 @@
 
   OrthancPlugins::OrthancPlugins()
   {
+    if (sizeof(int32_t) != sizeof(OrthancPluginErrorCode))
+    {
+      /* Sanity check of the compiler */
+      throw OrthancException(ErrorCode_Plugin);
+    }
+
     pimpl_.reset(new PImpl());
     pimpl_->manager_.RegisterServiceProvider(*this);
   }