aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-23 21:58:39 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-23 21:58:39 +0000
commitb1277c96b0818550190be134fd5e9a971087120b (patch)
treede51b5ae94732b5c956fc62a538f957d33916def /include/core
parent6a2134ef139b2c9d55dd57596144d12abc918f84 (diff)
Fix mac debug asserts
git-svn-id: http://skia.googlecode.com/svn/trunk@2747 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r--include/core/SkPostConfig.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h
index 51a629f2a6..fdc95bee4b 100644
--- a/include/core/SkPostConfig.h
+++ b/include/core/SkPostConfig.h
@@ -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