mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Use do { ... } while (0) for the *_LOG macros
Without this patch, such code would not compile: if (cond) WARN_LOG(FOO, "msg"); else WARN_LOG(FOO, "msg2");
This commit is contained in:
@ -88,9 +88,9 @@ struct TargetRectangle : public MathUtil::Rectangle<int>
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#define PRIM_LOG(...) {DEBUG_LOG(VIDEO, __VA_ARGS__)}
|
||||
#define PRIM_LOG(...) DEBUG_LOG(VIDEO, __VA_ARGS__)
|
||||
#else
|
||||
#define PRIM_LOG(...) {DEBUG_LOG(VIDEO, ##__VA_ARGS__)}
|
||||
#define PRIM_LOG(...) DEBUG_LOG(VIDEO, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user