Fix mac debug asserts
git-svn-id: http://skia.googlecode.com/svn/trunk@2747 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
6a2134ef13
commit
b1277c96b0
@ -94,9 +94,9 @@
|
||||
|
||||
#ifndef SK_CRASH
|
||||
#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
|
||||
#define SK_CRASH() SkNO_RETURN_HINT(); do {} while (true)
|
||||
#define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user