comparison Framework/StoneException.h @ 722:28b9e3a54200

Undo mechanism implemented (not connected to UI yet). Undo stack and measuring tools are now handled by the ViewportController. Multi-touch does not crash trackers anymore.
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 21 May 2019 10:27:54 +0200
parents b70e9be013e4
children 8e31b174ab26 712ff6ff3c19
comparison
equal deleted inserted replaced
721:af0aa0c149fa 722:28b9e3a54200
111 } 111 }
112 }; 112 };
113 113
114 } 114 }
115 115
116 // See https://isocpp.org/wiki/faq/misc-technical-issues#macros-with-multi-stmts
117 // (or google "Multiple lines macro C++ faq lite" if link is dead)
118 #define ORTHANC_ASSERT(cond,streamChainMessage) \
119 if (!(cond)) { \
120 std::stringstream sst; \
121 sst << "Assertion failed. Condition = \"" #cond "\" Message = \"" << streamChainMessage << "\""; \
122 std::string sstr = sst.str(); \
123 throw OrthancException(ErrorCode_InternalError,sstr.c_str()); \
124 } else (void)0
125