Fix mac debug asserts

git-svn-id: http://skia.googlecode.com/svn/trunk@2747 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2011-11-23 21:58:39 +00:00
parent 6a2134ef13
commit b1277c96b0

View File

@ -94,9 +94,9 @@
#ifndef SK_CRASH #ifndef SK_CRASH
#if 1 // set to 0 for infinite loop, which can help connecting gdb #if 1 // set to 0 for infinite loop, which can help connecting gdb
#define SK_CRASH() SkNO_RETURN_HINT(); *(int *)(uintptr_t)0xbbadbeef = 0 #define SK_CRASH() do { SkNO_RETURN_HINT(); *(int *)(uintptr_t)0xbbadbeef = 0; } while (false)
#else #else
#define SK_CRASH() SkNO_RETURN_HINT(); do {} while (true) #define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true)
#endif #endif
#endif #endif