From: guigues Date: Mon, 17 Nov 2008 10:10:05 +0000 (+0000) Subject: Fixed lower/upper case mismatch X-Git-Tag: v0.2.0~25 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c3aa36fc8a7d75a447e275211ebebae93b95371d;p=crea.git Fixed lower/upper case mismatch --- diff --git a/src/creaMessageManager.h b/src/creaMessageManager.h index 246d7e1..690f56d 100644 --- a/src/creaMessageManager.h +++ b/src/creaMessageManager.h @@ -62,10 +62,10 @@ #include // 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) \ @@ -77,22 +77,22 @@ } \ 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 @@ -101,7 +101,7 @@ //=========================================================== -#ifdef crea_COMPILE_MESSAGES +#ifdef CREA_COMPILE_MESSAGES // Macro for messages #define creaMessage(key,value,MESSAGE) \ @@ -197,7 +197,7 @@ //=========================================================== -#ifdef crea_COMPILE_DEBUG_MESSAGES +#ifdef CREA_COMPILE_DEBUG_MESSAGES // Macro for debug messages #define creaDebugMessage(key,value,MESSAGE) \ @@ -291,7 +291,7 @@ //=========================================================== //=========================================================== -#ifdef crea_COMPILE_WARNING_MESSAGES +#ifdef CREA_COMPILE_WARNING_MESSAGES #define creaWarning(MESSAGE) \ do \ { \ @@ -315,7 +315,7 @@ //=========================================================== -#ifdef crea_COMPILE_ERROR_MESSAGES +#ifdef CREA_COMPILE_ERROR_MESSAGES //#include "creaWx.h" #define creaError(MESSAGE) \ do \ @@ -345,14 +345,14 @@ } \ 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, \