use __builtin_debugtrap() in sk_abort_no_print() where possible
I got a little jealous of the Windows version of this that breaks into the debugger. Using __builtin_debugtrap() here should have basically the effect of abort() when not under a debugger, but lets you continue on if you want when run under a debugger. Change-Id: If5f12776758b1753ffad083b34a53661450b0812 Reviewed-on: https://skia-review.googlesource.com/156248 Auto-Submit: Mike Klein <mtklein@google.com> Commit-Queue: Brian Osman <brianosman@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
This commit is contained in:
parent
78c6015cb0
commit
4fb073ac73
@ -37,6 +37,8 @@ void sk_abort_no_print() {
|
|||||||
#endif
|
#endif
|
||||||
#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN)
|
#if defined(SK_DEBUG) && defined(SK_BUILD_FOR_WIN)
|
||||||
__debugbreak();
|
__debugbreak();
|
||||||
|
#elif defined(__clang__)
|
||||||
|
__builtin_debugtrap();
|
||||||
#else
|
#else
|
||||||
abort();
|
abort();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user