diff options
author | Hal Canary <halcanary@google.com> | 2018-07-09 12:43:39 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-11 15:40:18 +0000 |
commit | 2267a092356d17f6444502dc92491485ccf24341 (patch) | |
tree | 28d18ae014c14d9a7f447bf0895c10ce51975268 /include/core | |
parent | 22647d0e84ec63b76b9d26153c59d9338b761107 (diff) |
SkDEBUGF: use __VA_ARGS__
Change-Id: I42a47e821ff7a7f6cec65b38a8216cabbf0acfce
Reviewed-on: https://skia-review.googlesource.com/139860
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkTypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h index be51e20bac..2ff637387d 100644 --- a/include/core/SkTypes.h +++ b/include/core/SkTypes.h @@ -58,7 +58,7 @@ SK_API extern void sk_abort_no_print(void); #define SkDEBUGFAIL(message) SK_ABORT(message) #define SkDEBUGFAILF(fmt, ...) SkASSERTF(false, fmt, ##__VA_ARGS__) #define SkDEBUGCODE(...) __VA_ARGS__ - #define SkDEBUGF(args ) SkDebugf args + #define SkDEBUGF(...) SkDebugf(__VA_ARGS__) #define SkAssertResult(cond) SkASSERT(cond) #else #define SkASSERT(cond) static_cast<void>(0) @@ -66,7 +66,7 @@ SK_API extern void sk_abort_no_print(void); #define SkDEBUGFAIL(message) #define SkDEBUGFAILF(fmt, ...) #define SkDEBUGCODE(...) - #define SkDEBUGF(args) + #define SkDEBUGF(...) // unlike SkASSERT, this macro executes its condition in the non-debug build. // The if is present so that this can be used with functions marked SK_WARN_UNUSED_RESULT. |