1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #3483 from Alexander-Wilms/semicolons-after-macros

Remove trailing semicolons from macro definitions
This commit is contained in:
Ivan Savenko
2024-01-15 11:58:33 +02:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ struct SetGlobalState
};
#define SET_GLOBAL_STATE(ai) SetGlobalState _hlpSetState(ai);
#define SET_GLOBAL_STATE(ai) SetGlobalState _hlpSetState(ai)
#define NET_EVENT_HANDLER SET_GLOBAL_STATE(this)
#define MAKING_TURN SET_GLOBAL_STATE(this)

View File

@@ -66,7 +66,7 @@ struct SetGlobalState
};
#define SET_GLOBAL_STATE(ai) SetGlobalState _hlpSetState(ai);
#define SET_GLOBAL_STATE(ai) SetGlobalState _hlpSetState(ai)
#define NET_EVENT_HANDLER SET_GLOBAL_STATE(this)
#define MAKING_TURN SET_GLOBAL_STATE(this)

View File

@@ -172,10 +172,10 @@ private:
/// Macros for tracing the control flow of the application conveniently. If the LOG_TRACE macro is used it should be
/// the first statement in the function. Logging traces via this macro have almost no impact when the trace is disabled.
///
#define RAII_TRACE(logger, onEntry, onLeave) \
std::unique_ptr<vstd::CTraceLogger> ctl00; \
if(logger->isTraceEnabled()) \
ctl00 = std::make_unique<vstd::CTraceLogger>(logger, onEntry, onLeave);
#define RAII_TRACE(logger, onEntry, onLeave) \
std::unique_ptr<vstd::CTraceLogger> ctl00 = logger->isTraceEnabled() ? \
std::make_unique<vstd::CTraceLogger>(logger, onEntry, onLeave) : \
std::unique_ptr<vstd::CTraceLogger>()
#define LOG_TRACE(logger) RAII_TRACE(logger, \
boost::str(boost::format("Entering %s.") % BOOST_CURRENT_FUNCTION), \