Mercurial > hg > orthanc-stone
comparison Framework/StoneException.h @ 754:92c400a09f1b
Merge from default
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 22 May 2019 16:13:46 +0200 |
parents | 712ff6ff3c19 8e31b174ab26 |
children | 07adcffba38c |
comparison
equal
deleted
inserted
replaced
753:a386bbc955dc | 754:92c400a09f1b |
---|---|
118 #define ORTHANC_ASSERT2(cond,streamChainMessage) \ | 118 #define ORTHANC_ASSERT2(cond,streamChainMessage) \ |
119 if (!(cond)) { \ | 119 if (!(cond)) { \ |
120 std::stringstream sst; \ | 120 std::stringstream sst; \ |
121 sst << "Assertion failed. Condition = \"" #cond "\" Message = \"" << streamChainMessage << "\""; \ | 121 sst << "Assertion failed. Condition = \"" #cond "\" Message = \"" << streamChainMessage << "\""; \ |
122 std::string sstr = sst.str(); \ | 122 std::string sstr = sst.str(); \ |
123 throw OrthancException(ErrorCode_InternalError,sstr.c_str()); \ | 123 throw ::Orthanc::OrthancException(::Orthanc::ErrorCode_InternalError,sstr.c_str()); \ |
124 } else (void)0 | 124 } else (void)0 |
125 | 125 |
126 #define ORTHANC_ASSERT1(cond) \ | 126 #define ORTHANC_ASSERT1(cond) \ |
127 if (!(cond)) { \ | 127 if (!(cond)) { \ |
128 std::stringstream sst; \ | 128 std::stringstream sst; \ |