diff Core/Logging.h @ 2137:595cf22b3e7e

safety checks of macros
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 15:07:50 +0100
parents ddc75c6c712d
children 2dbfdafc2512
line wrap: on
line diff
--- a/Core/Logging.h	Wed Nov 09 14:08:05 2016 +0100
+++ b/Core/Logging.h	Wed Nov 09 15:07:50 2016 +0100
@@ -34,6 +34,10 @@
 
 #include <iostream>
 
+#if !defined(ORTHANC_ENABLE_LOGGING)
+#  error The macro ORTHANC_ENABLE_LOGGING must be defined
+#endif
+
 namespace Orthanc
 {
   namespace Logging