Simplify the macros.

pull/3905/head
Malcolm Tyrrell 2021-05-13 10:14:24 +01:00
parent 78145f1425
commit 6957d34733
1 changed files with 10 additions and 10 deletions

View File

@ -312,20 +312,20 @@ Logger::LogSeverity Logger::getLogSeverity() const {
} // Namespace Assimp } // Namespace Assimp
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
#define ASSIMP_LOG_WARN_F(string, ...) \ #define ASSIMP_LOG_WARN_F(...) \
Assimp::DefaultLogger::get()->warn((string, __VA_ARGS__)) Assimp::DefaultLogger::get()->warn(__VA_ARGS__)
#define ASSIMP_LOG_ERROR_F(string, ...) \ #define ASSIMP_LOG_ERROR_F(...) \
Assimp::DefaultLogger::get()->error((string, __VA_ARGS__)) Assimp::DefaultLogger::get()->error(__VA_ARGS__)
#define ASSIMP_LOG_DEBUG_F(string, ...) \ #define ASSIMP_LOG_DEBUG_F(...) \
Assimp::DefaultLogger::get()->debug((string, __VA_ARGS__)) Assimp::DefaultLogger::get()->debug(__VA_ARGS__)
#define ASSIMP_LOG_VERBOSE_DEBUG_F(string, ...) \ #define ASSIMP_LOG_VERBOSE_DEBUG_F(...) \
Assimp::DefaultLogger::get()->verboseDebug((string, __VA_ARGS__)) Assimp::DefaultLogger::get()->verboseDebug(__VA_ARGS__)
#define ASSIMP_LOG_INFO_F(string, ...) \ #define ASSIMP_LOG_INFO_F(...) \
Assimp::DefaultLogger::get()->info((string, __VA_ARGS__)) Assimp::DefaultLogger::get()->info(__VA_ARGS__)
#define ASSIMP_LOG_WARN(string) \ #define ASSIMP_LOG_WARN(string) \
Assimp::DefaultLogger::get()->warn(string) Assimp::DefaultLogger::get()->warn(string)