From eedd6465233fcbd7c68d809db0e6d88e5bfa0951 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 3 Jan 2023 16:34:49 +0100 Subject: [PATCH] avoid double underscored symbol --- .../utils/DeferredLoggingErrorHelpers.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp b/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp index f8af4bbb5..d65954d41 100644 --- a/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp +++ b/opm/simulators/utils/DeferredLoggingErrorHelpers.hpp @@ -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 {