Mercurial > hg > orthanc-stone
changeset 851:101073b3e855
Added namespace to ORTHANC_ASSERT macros
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 17 Jun 2019 16:13:14 +0200 |
parents | df0c73ee7afa |
children | 6d15261f9c99 |
files | Framework/StoneException.h |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/StoneException.h Mon Jun 17 16:12:52 2019 +0200 +++ b/Framework/StoneException.h Mon Jun 17 16:13:14 2019 +0200 @@ -128,11 +128,9 @@ std::stringstream sst; \ sst << "Assertion failed. Condition = \"" #cond "\""; \ std::string sstr = sst.str(); \ - throw OrthancException(ErrorCode_InternalError,sstr.c_str()); \ + throw ::Orthanc::OrthancException(::Orthanc::ErrorCode_InternalError,sstr.c_str()); \ } else (void)0 - - # define ORTHANC_EXPAND( x ) x # define GET_ORTHANC_ASSERT(_1,_2,NAME,...) NAME # define ORTHANC_ASSERT(...) ORTHANC_EXPAND(GET_ORTHANC_ASSERT(__VA_ARGS__, ORTHANC_ASSERT2, ORTHANC_ASSERT1, UNUSED)(__VA_ARGS__))