Skip to content

Commit 739530f

Browse files
refactor(log): macro name
1 parent 2590931 commit 739530f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

makespec/BUILDVERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
137
1+
138

src/base/LemonBaseApplication.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ auto LemonBaseApplication::Initialize() -> bool {
2222
bool canContinue;
2323
const auto hasError = parseCommandLine(&canContinue, &errorMessage);
2424
if (hasError) {
25-
LOG("Command line: " A(errorMessage));
25+
LOG("Command line: " GEN_PAIR(errorMessage));
2626
if (! canContinue) {
2727
LOG("Fatal Error, LemonLime cannot continue.");
2828
return false;
@@ -90,7 +90,7 @@ auto LemonBaseApplication::parseCommandLine(bool *canContinue, QString *errorMes
9090

9191

9292
#define ProcessExtraStartupOptions(option) \
93-
DEBUG("Startup Options:" A(parser.isSet(option##Option))); \
93+
DEBUG("Startup Options:" GEN_PAIR(parser.isSet(option##Option))); \
9494
StartupArguments.option = parser.isSet(option##Option);
9595

9696
ProcessExtraStartupOptions(debugLog);

src/base/LemonLog.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
// Generate pairs for each variable passed as args to use in the log.
2222
// with line 73: QTextStream &operator<<(QTextStream &stream, const std::pair<TKey, TVal> &pair)
23-
#define A(...) FOREACH_CALL_FUNC(___LOG_EXPAND, __VA_ARGS__)
23+
#define GEN_PAIR(...) FOREACH_CALL_FUNC(___LOG_EXPAND, __VA_ARGS__)
2424

2525
#ifdef QT_DEBUG
2626
#define LEMON_IS_DEBUG true

0 commit comments

Comments
 (0)