Ignore:
Timestamp:
Sep 22, 2009, 5:57:53 AM (16 years ago)
Author:
Simon Hausmann
Message:

Disable variadic macros on MSVC7.

Patch by Kent Hansen <[email protected]> on 2009-09-22
Reviewed by Simon Hausmann.

This was originally added in r26589 but not extended
when LOG_DISABLED/ASSERT_DISABLED was introduced.

  • wtf/Assertions.h:
File:
1 edited

Legend:

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

    r45907 r48629  
    145145
    146146#define ASSERT(assertion) ((void)0)
     147#if COMPILER(MSVC7)
     148#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
     149#else
    147150#define ASSERT_WITH_MESSAGE(assertion, ...) ((void)0)
     151#endif /* COMPILER(MSVC7) */
    148152#define ASSERT_NOT_REACHED() ((void)0)
    149153#define ASSERT_UNUSED(variable, assertion) ((void)variable)
     
    200204/* FATAL */
    201205
    202 #if FATAL_DISABLED
     206#if FATAL_DISABLED && !COMPILER(MSVC7)
    203207#define FATAL(...) ((void)0)
    204208#elif COMPILER(MSVC7)
     
    213217/* LOG_ERROR */
    214218
    215 #if ERROR_DISABLED
     219#if ERROR_DISABLED && !COMPILER(MSVC7)
    216220#define LOG_ERROR(...) ((void)0)
    217221#elif COMPILER(MSVC7)
     
    223227/* LOG */
    224228
    225 #if LOG_DISABLED
     229#if LOG_DISABLED && !COMPILER(MSVC7)
    226230#define LOG(channel, ...) ((void)0)
    227231#elif COMPILER(MSVC7)
     
    235239/* LOG_VERBOSE */
    236240
    237 #if LOG_DISABLED
     241#if LOG_DISABLED && !COMPILER(MSVC7)
    238242#define LOG_VERBOSE(channel, ...) ((void)0)
    239243#elif COMPILER(MSVC7)
Note: See TracChangeset for help on using the changeset viewer.