]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkMessageManager.h
#342 8BBTK Feature New Normal - Clean PlugPackage Windows
[bbtk.git] / kernel / src / bbtkMessageManager.h
index 325067a518ac439940c40441e240ead0d92f2137..c5a82117fb468bbe6372ef41dd047bbd30befc36 100644 (file)
   do                                                   \
     {                                                  \
       std::ostringstream s;                            \
-      s << "MESSAGE";                                  \
+      s << MESSAGE;                                    \
       std::ostringstream f;                            \
       f << __FILE__ << " (l."<<__LINE__<<")";          \
       bbtk::Exception e( BBTK_GET_CURRENT_OBJECT_NAME, \
                        s.str());                       \
       throw e;                                         \
     }                                                  \
-  while (0) 
+  while (0); 
 
 #define BBTK_INTERNAL_ERROR_MESSAGE \
   "\n\n***********************************************\n**** THIS IS AN INTERNAL ERROR TO BBTK     ****\n**** Please send a full bug report to :    ****\n****  bbtk-developers@creatis.insa-lyon.fr ****\n***********************************************\n\n"