Fixed issue preventing THROW macro having easy access to sstream.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-10-15 18:05:51 +02:00
parent c3606c25f6
commit c445536aed
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -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");