Changeset 52337 in webkit


Ignore:
Timestamp:
Dec 18, 2009 1:18:13 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-18 Yongjun Zhang <yongjun.zhang@nokia.com>

Reviewed by Simon Hausmann.

https://bugs.webkit.org/show_bug.cgi?id=32713
[Qt] make wtf/Assertions.h compile in winscw compiler.

Add string arg before ellipsis to help winscw compiler resolve variadic
macro definitions in wtf/Assertions.h.

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

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r52334 r52337  
     12009-12-18  Yongjun Zhang  <yongjun.zhang@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=32713
     6        [Qt] make wtf/Assertions.h compile in winscw compiler.
     7
     8        Add string arg before ellipsis to help winscw compiler resolve variadic
     9        macro definitions in wtf/Assertions.h.
     10
     11        * wtf/Assertions.h:
     12
    1132009-12-18  Geoffrey Garen  <ggaren@apple.com>
    214
  • trunk/JavaScriptCore/wtf/Assertions.h

    r48922 r52337  
    157157
    158158#define ASSERT(assertion) ((void)0)
    159 #if COMPILER(MSVC7) || COMPILER(WINSCW)
     159#if COMPILER(MSVC7)
    160160#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
     161#elif COMPILER(WINSCW)
     162#define ASSERT_WITH_MESSAGE(assertion, arg...) ((void)0)
    161163#else
    162164#define ASSERT_WITH_MESSAGE(assertion, ...) ((void)0)
     
    173175    } \
    174176while (0)
    175 #if COMPILER(MSVC7) || COMPILER(WINSCW)
     177#if COMPILER(MSVC7)
    176178#define ASSERT_WITH_MESSAGE(assertion) ((void)0)
     179#elif COMPILER(WINSCW)
     180#define ASSERT_WITH_MESSAGE(assertion, arg...) ((void)0)
    177181#else
    178182#define ASSERT_WITH_MESSAGE(assertion, ...) do \
     
    231235#if ERROR_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    232236#define LOG_ERROR(...) ((void)0)
    233 #elif COMPILER(MSVC7) || COMPILER(WINSCW)
     237#elif COMPILER(MSVC7)
    234238#define LOG_ERROR() ((void)0)
     239#elif COMPILER(WINSCW)
     240#define LOG_ERROR(arg...)  ((void)0)
    235241#else
    236242#define LOG_ERROR(...) WTFReportError(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, __VA_ARGS__)
     
    241247#if LOG_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    242248#define LOG(channel, ...) ((void)0)
    243 #elif COMPILER(MSVC7) || COMPILER(WINSCW)
     249#elif COMPILER(MSVC7)
    244250#define LOG() ((void)0)
     251#elif COMPILER(WINSCW)
     252#define LOG(arg...) ((void)0)
    245253#else
    246254#define LOG(channel, ...) WTFLog(&JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)
     
    253261#if LOG_DISABLED && !COMPILER(MSVC7) && !COMPILER(WINSCW)
    254262#define LOG_VERBOSE(channel, ...) ((void)0)
    255 #elif COMPILER(MSVC7) || COMPILER(WINSCW)
     263#elif COMPILER(MSVC7)
    256264#define LOG_VERBOSE(channel) ((void)0)
     265#elif COMPILER(WINSCW)
     266#define LOG_VERBOSE(channel, arg...) ((void)0)
    257267#else
    258268#define LOG_VERBOSE(channel, ...) WTFLogVerbose(__FILE__, __LINE__, WTF_PRETTY_FUNCTION, &JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, channel), __VA_ARGS__)
Note: See TracChangeset for help on using the changeset viewer.