diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 20:08:50 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-12 20:08:50 +0000 |
commit | 2786f3db2489aa1fd2453fa85745e5c5658b1cd1 (patch) | |
tree | 905f82e544746d33d6cc4a3f760a345f648a4fd1 /skia/include/corecg/SkPostConfig.h | |
parent | b734450b86e9d6bd7a07b381c119ca91803ae46b (diff) | |
download | chromium_src-2786f3db2489aa1fd2453fa85745e5c5658b1cd1.zip chromium_src-2786f3db2489aa1fd2453fa85745e5c5658b1cd1.tar.gz chromium_src-2786f3db2489aa1fd2453fa85745e5c5658b1cd1.tar.bz2 |
Hook up skia's assertions to our logging system.
Review URL: http://codereview.chromium.org/17285
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7889 0039d316-1c4b-4281-b951-d872f2087c98
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) |