Changeset 57318 in webkit for trunk/JavaScriptCore/wtf


Ignore:
Timestamp:
Apr 9, 2010, 1:36:31 AM (15 years ago)
Author:
[email protected]
Message:

2010-04-09 Patrick Gansterer <[email protected]>

Reviewed by Darin Adler.

Implement NO_RETURN for COMPILER(MSVC).
https://bugs.webkit.org/show_bug.cgi?id=33056

Added NO_RETURN_WITH_VALUE for functions with non-void return type.

  • jsc.cpp:
  • wtf/AlwaysInline.h:
  • wtf/FastMalloc.cpp:
Location:
trunk/JavaScriptCore/wtf
Files:
2 edited

Legend:

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

    r54765 r57318  
    6060#if COMPILER(GCC)
    6161#define NO_RETURN __attribute((__noreturn__))
    62 #elif COMPILER(RVCT)
     62#elif COMPILER(MSVC) || COMPILER(RVCT)
    6363#define NO_RETURN __declspec(noreturn)
    6464#else
     
    6666#endif
    6767#endif
     68
     69#ifndef NO_RETURN_WITH_VALUE
     70#if !COMPILER(MSVC)
     71#define NO_RETURN_WITH_VALUE NO_RETURN
     72#else
     73#define NO_RETURN_WITH_VALUE
     74#endif
     75#endif
  • trunk/JavaScriptCore/wtf/FastMalloc.cpp

    r56066 r57318  
    14321432
    14331433#if !HAVE(DISPATCH_H)
    1434   static NO_RETURN void* runScavengerThread(void*);
     1434  static NO_RETURN_WITH_VALUE void* runScavengerThread(void*);
    14351435  NO_RETURN void scavengerThread();
    14361436
Note: See TracChangeset for help on using the changeset viewer.