diff options
Diffstat (limited to 'skia/include/corecg/SkPostConfig.h')
-rw-r--r-- | skia/include/corecg/SkPostConfig.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/skia/include/corecg/SkPostConfig.h b/skia/include/corecg/SkPostConfig.h index b2190ba..9fb27c4 100644 --- a/skia/include/corecg/SkPostConfig.h +++ b/skia/include/corecg/SkPostConfig.h @@ -96,12 +96,16 @@ // Chrome already defines WIN32_LEAN_AND_MEAN so no need to define it here. #include <windows.h> - // End Chrome-specific changes + #include <stdio.h> #ifndef SK_DEBUGBREAK - #define SK_DEBUGBREAK(cond) do { if (!(cond)) DebugBreak(); } while (false) + #define SK_DEBUGBREAK(cond) do { if (!(cond)) { \ + SkDebugf("%s:%d: failed assertion \"%s\"\n", \ + __FILE__, __LINE__, #cond); SK_CRASH(); } } while (false) #endif + // End Chrome-specific changes + #ifdef SK_BUILD_FOR_WIN32 #define strcasecmp(a, b) stricmp(a, b) #define strncasecmp(a, b, c) strnicmp(a, b, c) |