Changeset 57016 in webkit


Ignore:
Timestamp:
Apr 2, 2010 12:51:37 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-02 Jeremy Moskovich <jeremy@chromium.org>

Reviewed by Geoffrey Garen.

Beef up documentation for ASSERT* and CRASH macros a bit.

https://bugs.webkit.org/show_bug.cgi?id=36527

  • wtf/Assertions.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r57001 r57016  
     12010-04-02  Jeremy Moskovich  <jeremy@chromium.org>
     2
     3        Reviewed by Geoffrey Garen.
     4
     5        Beef up documentation for ASSERT* and CRASH macros a bit.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=36527
     8
     9        * wtf/Assertions.h:
     10
    1112010-04-02  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    212
  • trunk/JavaScriptCore/wtf/Assertions.h

    r54296 r57016  
    5757
    5858#ifdef NDEBUG
     59/* Disable ASSERT* macros in release mode. */
    5960#define ASSERTIONS_DISABLED_DEFAULT 1
    6061#else
     
    149150#endif
    150151
    151 /* CRASH -- gets us into the debugger or the crash reporter -- signals are ignored by the crash reporter so we must do better */
    152 
     152/* CRASH() - Raises a fatal error resulting in program termination and triggering either the debugger or the crash reporter.
     153
     154   Use CRASH() in response to known, unrecoverable errors like out-of-memory.
     155   Macro is enabled in both debug and release mode.
     156   To test for unknown errors and verify assumptions, use ASSERT instead, to avoid impacting performance in release builds.
     157
     158   Signals are ignored by the crash reporter on OS X so we must do better.
     159*/
    153160#ifndef CRASH
    154161#if OS(SYMBIAN)
     
    165172#endif
    166173
    167 /* ASSERT, ASSERT_NOT_REACHED, ASSERT_UNUSED */
     174/* ASSERT, ASSERT_NOT_REACHED, ASSERT_UNUSED
     175
     176  These macros are compiled out of release builds.
     177  Expressions inside them are evaluated in debug builds only.
     178*/
    168179
    169180#if OS(WINCE) && !PLATFORM(TORCHMOBILE)
Note: See TracChangeset for help on using the changeset viewer.