Ignore:
Timestamp:
Jul 3, 2010, 1:17:39 AM (15 years ago)
Author:
[email protected]
Message:

2010-07-03 Kwang Yul Seo <[email protected]>

Reviewed by Kent Tamura.

[BREWMP] Change the CRASH() macro to print "WebKit CRASH" log.
https://bugs.webkit.org/show_bug.cgi?id=41524

Print "WebKit CRASH" before crashing.

  • wtf/Assertions.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/Assertions.h

    r58307 r62441  
    5656#endif
    5757
     58#if PLATFORM(BREWMP)
     59#include <AEEStdLib.h>
     60#endif
     61
    5862#ifdef NDEBUG
    5963/* Disable ASSERT* macros in release mode. */
     
    164168    User::Panic(_L("Webkit CRASH"),0); \
    165169    } while(false)
     170#elif PLATFORM(BREWMP)
     171#define CRASH() do { \
     172    DBGPRINTF_FATAL("WebKit CRASH"); \
     173    *(int *)(uintptr_t)0xbbadbeef = 0; \
     174    ((void(*)())0)(); /* More reliable, but doesn't say BBADBEEF */ \
     175} while(false)
    166176#else
    167177#define CRASH() do { \
Note: See TracChangeset for help on using the changeset viewer.