Ignore:
Timestamp:
Nov 21, 2008, 12:09:40 PM (17 years ago)
Author:
[email protected]
Message:

Reverted fix for bug 22042 (Replace abort() with CRASH()), because it was breaking
FOR_EACH_OPCODE_ID macro somehow, making Safari crash.

File:
1 edited

Legend:

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

    r38666 r38672  
    5151#endif
    5252
    53 #include <stdlib.h>
    54 
    5553#ifdef NDEBUG
    5654#define ASSERTIONS_DISABLED_DEFAULT 1
     
    123121
    124122#ifndef CRASH
    125 #ifdef __cplusplus
    126 #define CRASH() do { \
    127     *(int *)(uintptr_t)0xbbadbeef = 0; \
    128     ::abort(); \
    129 } while (false)
    130 #else
    131 #define CRASH() do { \
    132     *(int *)(uintptr_t)0xbbadbeef = 0; \
    133     abort(); \
    134 } while (false)
    135 #endif
     123#define CRASH() *(int *)(uintptr_t)0xbbadbeef = 0
    136124#endif
    137125
Note: See TracChangeset for help on using the changeset viewer.