Index: include/core/SkTypes.h |
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h |
index baa6ac14aefad3bcb075cbb0698c99dea863972a..a47225db1199a23ed80fd62c570e9c699b4435e9 100644 |
--- a/include/core/SkTypes.h |
+++ b/include/core/SkTypes.h |
@@ -131,7 +131,11 @@ inline void operator delete(void* p) { |
#define SkASSERT_RELEASE(cond) if(!(cond)) { SK_ABORT(#cond); } |
#ifdef SK_DEBUG |
- #define SkASSERT(cond) SkASSERT_RELEASE(cond) |
+ #if defined SK_BUILD_FOR_WIN |
+ #define SkASSERT(cond) if(!(cond)) { __debugbreak(); } |
+ #else |
+ #define SkASSERT(cond) SkASSERT_RELEASE(cond) |
+ #endif |
#define SkDEBUGFAIL(message) SkASSERT(false && message) |
#define SkDEBUGFAILF(fmt, ...) SkASSERTF(false, fmt, ##__VA_ARGS__) |
#define SkDEBUGCODE(code) code |