Fixed issue preventing THROW macro having easy access to sstream.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c3606c25f6
commit
c445536aed
|
@ -152,7 +152,7 @@ static constexpr const char* file_name(const char* path) {
|
||||||
|
|
||||||
#define THROW(message) \
|
#define THROW(message) \
|
||||||
std::stringstream ___ss; \
|
std::stringstream ___ss; \
|
||||||
___ss << "[" << file_name(__FILE__) << ":" << __LINE__ << "] " << (message); \
|
___ss << "[" << file_name(__FILE__) << ":" << __LINE__ << "] " << message; \
|
||||||
throw ArbUt::Exception(___ss.str());
|
throw ArbUt::Exception(___ss.str());
|
||||||
|
|
||||||
#define NOT_REACHABLE THROW("Not reachable");
|
#define NOT_REACHABLE THROW("Not reachable");
|
||||||
|
|
Loading…
Reference in New Issue