Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: include/core/SkTypes.h

Issue 2231663002: Fix SkDEBUGCODE to accept commas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pathops/SkDConicLineIntersection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkTypes.h
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 69c53c33491a70576c27890723fbf7f261a00c02..95fff7d6563575eaa9bb35bce3eb0ad1c21dbe4b 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -154,7 +154,7 @@ inline void operator delete(void* p) {
})
#define SkDEBUGFAIL(message) SK_ABORT(message)
#define SkDEBUGFAILF(fmt, ...) SkASSERTF(false, fmt, ##__VA_ARGS__)
- #define SkDEBUGCODE(code) code
+ #define SkDEBUGCODE(...) __VA_ARGS__
#define SkDECLAREPARAM(type, var) , type var
#define SkPARAM(var) , var
#define SkDEBUGF(args ) SkDebugf args
@@ -163,7 +163,7 @@ inline void operator delete(void* p) {
#define SkASSERT(cond)
#define SkASSERTF(cond, fmt, ...)
#define SkDEBUGFAIL(message)
- #define SkDEBUGCODE(code)
+ #define SkDEBUGCODE(...)
#define SkDEBUGF(args)
#define SkDECLAREPARAM(type, var)
#define SkPARAM(var)
« no previous file with comments | « no previous file | src/pathops/SkDConicLineIntersection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698