]> Creatis software - crea.git/commitdiff
Fixed lower/upper case mismatch
authorguigues <guigues>
Mon, 17 Nov 2008 10:10:05 +0000 (10:10 +0000)
committerguigues <guigues>
Mon, 17 Nov 2008 10:10:05 +0000 (10:10 +0000)
src/creaMessageManager.h

index 246d7e1b768fc4182ddfdff90c7382357deff46b..690f56d72ab4306458c44faef4fd3fed71e25db1 100644 (file)
 #include <sstream>
 
 // Comment out these symbols to prevent compilation 
-//#define crea_COMPILE_MESSAGES
-//#define crea_COMPILE_DEBUG_MESSAGES
-//#define crea_COMPILE_WARNING_MESSAGES
-//#define crea_COMPILE_ERROR_MESSAGES
+//#define CREA_COMPILE_MESSAGES
+//#define CREA_COMPILE_DEBUG_MESSAGES
+//#define CREA_COMPILE_WARNING_MESSAGES
+//#define CREA_COMPILE_ERROR_MESSAGES
 
 
 #define creaOnMessageLevel(key,value)                  \
     }                                                  \
   else if (value<= __creaOnMessageLevelVariable) 
 
-#ifdef crea_PREPEND_MESSAGE_WITH_CODE
+#ifdef CREA_PREPEND_MESSAGE_WITH_CODE
 #define creaMessageCode                                \
   key[0] << key[1] << key[2] << value << " "
 #else 
 #define creaMessageCode ""
 #endif 
 
-#ifdef crea_PREPEND_MESSAGE_WITH_TAB
+#ifdef CREA_PREPEND_MESSAGE_WITH_TAB
 #define creaMessageTab                         \
   crea::MessageManager::GetTab()
 #else 
 #define creaMessageTab ""
 #endif
 
-#define crea_PREPEND_MESSAGE_WITH_SPACE
-#ifdef crea_PREPEND_MESSAGE_WITH_SPACE
+#define CREA_PREPEND_MESSAGE_WITH_SPACE
+#ifdef CREA_PREPEND_MESSAGE_WITH_SPACE
 #define creaMessageSpace(value)                        \
   crea::MessageManager::GetSpace(value)
 #else 
  
 
 //===========================================================
-#ifdef crea_COMPILE_MESSAGES
+#ifdef CREA_COMPILE_MESSAGES
 
 // Macro for messages
 #define creaMessage(key,value,MESSAGE)                 \
 
 
 //===========================================================
-#ifdef crea_COMPILE_DEBUG_MESSAGES
+#ifdef CREA_COMPILE_DEBUG_MESSAGES
 
 // Macro for debug messages
 #define creaDebugMessage(key,value,MESSAGE)             \
 //===========================================================
 
 //===========================================================
-#ifdef crea_COMPILE_WARNING_MESSAGES
+#ifdef CREA_COMPILE_WARNING_MESSAGES
 #define creaWarning(MESSAGE)                                           \
   do                                                                   \
     {                                                                  \
 
 
 //===========================================================
-#ifdef crea_COMPILE_ERROR_MESSAGES
+#ifdef CREA_COMPILE_ERROR_MESSAGES
 //#include "creaWx.h"
 #define creaError(MESSAGE)                             \
   do                                                   \
     }                                                  \
   while (0) 
 
-#define crea_INTERNAL_ERROR_MESSAGE \
-  "\n\n***********************************************\n**** THIS IS AN INTERNAL ERROR TO crea     ****\n**** Please send a full bug report to :    ****\n****  crea-developers@creatis.insa-lyon.fr ****\n***********************************************\n\n"
+#define CREA_INTERNAL_ERROR_MESSAGE \
+  "\n\n***********************************************\n**** THIS IS AN INTERNAL ERROR TO crea     ****\n**** Please send a full bug report to :    ****\n****  creatools@creatis.insa-lyon.fr ****\n***********************************************\n\n"
 
 #define creaInternalError(MESSAGE)                     \
   do                                                   \
     {                                                  \
       std::ostringstream s;                            \
-      s << MESSAGE << crea_INTERNAL_ERROR_MESSAGE;     \
+      s << MESSAGE << CREA_INTERNAL_ERROR_MESSAGE;     \
       std::ostringstream f;                            \
       f << __FILE__ << " (l."<<__LINE__<<")";          \
       crea::Exception e( CREA_GET_CURRENT_OBJECT_NAME, \