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

Unified Diff: include/core/SkTypes.h

Issue 2039443002: fix windows assert (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | no next file » | 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 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698