From aa97a84404c7505738713a4c19b42347c7daef9e Mon Sep 17 00:00:00 2001 From: djsollen Date: Fri, 22 Jan 2016 06:50:25 -0800 Subject: Revert of Consolidate SK_CRASH and sk_throw into SK_ABORT (patchset #5 id:80001 of https://codereview.chromium.org/1610823002/ ) Reason for revert: Chrome is calling SK_CRASH Original issue's description: > Consolidate SK_CRASH and sk_throw into SK_ABORT > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1610823002 > > Committed: https://skia.googlesource.com/skia/+/4c5cd7d527ed29aabfa72aa47b23a4496eeda357 TBR=reed@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true Review URL: https://codereview.chromium.org/1620333002 --- include/config/SkUserConfig.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/config/SkUserConfig.h') diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h index a0f6258281..ff8a5f3154 100644 --- a/include/config/SkUserConfig.h +++ b/include/config/SkUserConfig.h @@ -58,6 +58,13 @@ //#define SK_DEBUG_GLYPH_CACHE //#define SK_DEBUG_PATH +/* If, in debugging mode, Skia needs to stop (presumably to invoke a debugger) + it will call SK_CRASH(). If this is not defined it, it is defined in + SkPostConfig.h to write to an illegal address + */ +//#define SK_CRASH() *(int *)(uintptr_t)0 = 0 + + /* preconfig will have attempted to determine the endianness of the system, but you can change these mutually exclusive flags here. */ -- cgit v1.2.3