diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2012-08-20 13:12:49 +0200 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2012-08-20 13:12:49 +0200 |
| commit | 54fc4029dd3dad0744fecc192cbee9d26a2601e6 (patch) | |
| tree | b266a88408824dbb551ca6cffbd6ceed07deae05 /Source/Core/VideoCommon | |
| parent | 603bd9982d89b917af83bae2e45b3eaa8e2accec (diff) | |
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");
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VideoCommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoCommon.h b/Source/Core/VideoCommon/Src/VideoCommon.h index 9f6dd59cd3..f067fb9d6b 100644 --- a/Source/Core/VideoCommon/Src/VideoCommon.h +++ b/Source/Core/VideoCommon/Src/VideoCommon.h @@ -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 |
