Skip to content

Commit d58a710

Browse files
drWulfandi34
authored andcommitted
Update SK_CRASH to default to abort().
Bug: 26593930 Change-Id: Ice485b476a8defc5d07db275f0e5b0135dc0bbaf (cherry picked from commit 6d7ab2ea60e648359b555527cd95ffba709e0a29)
1 parent d50f2b8 commit d58a710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/core/SkPostConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114

115115
#ifndef SK_CRASH
116116
# if 1 // set to 0 for infinite loop, which can help connecting gdb
117-
# define SK_CRASH() do { SkNO_RETURN_HINT(); *(int *)(uintptr_t)0xbbadbeef = 0; } while (false)
117+
# define SK_CRASH() do { SkNO_RETURN_HINT(); abort(); } while (false)
118118
# else
119119
# define SK_CRASH() do { SkNO_RETURN_HINT(); } while (true)
120120
# endif

0 commit comments

Comments
 (0)