mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4345 from akva2/fix_macro
avoid double underscored symbol
This commit is contained in:
commit
716ea14cb0
@ -42,13 +42,13 @@
|
|||||||
// std::runtime_error.
|
// std::runtime_error.
|
||||||
//
|
//
|
||||||
// Usage: OPM_DEFLOG_THROW(ExceptionClass, "Error message", DeferredLogger);
|
// Usage: OPM_DEFLOG_THROW(ExceptionClass, "Error message", DeferredLogger);
|
||||||
#define OPM_DEFLOG_THROW(Exception, message, deferred_logger) \
|
#define OPM_DEFLOG_THROW(Exception, message, deferred_logger) \
|
||||||
do { \
|
do { \
|
||||||
std::string oss__ = std::string{"["} + __FILE__ + ":" + \
|
std::string oss_ = std::string{"["} + __FILE__ + ":" + \
|
||||||
std::to_string(__LINE__) + "] " + \
|
std::to_string(__LINE__) + "] " + \
|
||||||
message; \
|
message; \
|
||||||
deferred_logger.error(oss__); \
|
deferred_logger.error(oss_); \
|
||||||
throw Exception(oss__); \
|
throw Exception(oss_); \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
Loading…
Reference in New Issue
Block a user