mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
avoid double underscored symbol
This commit is contained in:
parent
d58efe3bf9
commit
eedd646523
@ -42,13 +42,13 @@
|
||||
// std::runtime_error.
|
||||
//
|
||||
// Usage: OPM_DEFLOG_THROW(ExceptionClass, "Error message", DeferredLogger);
|
||||
#define OPM_DEFLOG_THROW(Exception, message, deferred_logger) \
|
||||
do { \
|
||||
std::string oss__ = std::string{"["} + __FILE__ + ":" + \
|
||||
std::to_string(__LINE__) + "] " + \
|
||||
message; \
|
||||
deferred_logger.error(oss__); \
|
||||
throw Exception(oss__); \
|
||||
#define OPM_DEFLOG_THROW(Exception, message, deferred_logger) \
|
||||
do { \
|
||||
std::string oss_ = std::string{"["} + __FILE__ + ":" + \
|
||||
std::to_string(__LINE__) + "] " + \
|
||||
message; \
|
||||
deferred_logger.error(oss_); \
|
||||
throw Exception(oss_); \
|
||||
} while (false)
|
||||
|
||||
namespace {
|
||||
|
Loading…
Reference in New Issue
Block a user