Handle THROW macro in its own scope.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -152,9 +152,11 @@ static consteval const char* file_name(const char* path) {
|
||||
}
|
||||
|
||||
#define THROW(message) \
|
||||
std::stringstream ___ss; \
|
||||
___ss << "[" << file_name(__FILE__) << ":" << __LINE__ << "] " << message; \
|
||||
throw ArbUt::Exception(___ss.str());
|
||||
{ \
|
||||
std::stringstream ___ss; \
|
||||
___ss << "[" << file_name(__FILE__) << ":" << __LINE__ << "] " << message; \
|
||||
throw ArbUt::Exception(___ss.str()); \
|
||||
}
|
||||
|
||||
#define NOT_REACHABLE THROW("Not reachable");
|
||||
#define NOT_IMPLEMENTED THROW("Not implemented");
|
||||
|
||||
Reference in New Issue
Block a user