Fix SkDEBUGCODE to accept commas
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2231663002
Review-Url: https://codereview.chromium.org/2231663002
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 69c53c3..95fff7d 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -154,7 +154,7 @@
})
#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 @@
#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)