Logger: remove semicolons from the macro definitions.

This'll force adding a semicolon to macro calls. Dunno why I missed
that, considering the version that didn't lock the mutex also didn't
have the last semicolon.
This commit is contained in:
Guillaume Jacquemin 2022-04-29 19:37:07 +02:00
parent 2d1d46ec08
commit b0b227471a

View file

@ -61,13 +61,13 @@ bool tryLockMutex();
#define LOG_INFO(message) MassBuilderSaveTool::Logger::lockMutex(); \
MassBuilderSaveTool::Logger::addEntry(MassBuilderSaveTool::Logger::EntryType::Info, message); \
MassBuilderSaveTool::Logger::unlockMutex();
MassBuilderSaveTool::Logger::unlockMutex()
#define LOG_SUCCESS(message) MassBuilderSaveTool::Logger::lockMutex(); \
MassBuilderSaveTool::Logger::addEntry(MassBuilderSaveTool::Logger::EntryType::Success, message); \
MassBuilderSaveTool::Logger::unlockMutex();
MassBuilderSaveTool::Logger::unlockMutex()
#define LOG_WARNING(message) MassBuilderSaveTool::Logger::lockMutex(); \
MassBuilderSaveTool::Logger::addEntry(MassBuilderSaveTool::Logger::EntryType::Warning, message); \
MassBuilderSaveTool::Logger::unlockMutex();
MassBuilderSaveTool::Logger::unlockMutex()
#define LOG_ERROR(message) MassBuilderSaveTool::Logger::lockMutex(); \
MassBuilderSaveTool::Logger::addEntry(MassBuilderSaveTool::Logger::EntryType::Error, message); \
MassBuilderSaveTool::Logger::unlockMutex();
MassBuilderSaveTool::Logger::unlockMutex()