Skip to content
  • aroben@apple.com's avatar
    Make testapi.c compile under MSVC · 9c907cfc
    aroben@apple.com authored
             Currently you must compile testapi.c as C++ code since MSVC does not
             support many C features that GCC does.
    
             Reviewed by Steve Falkenburg.
    
             * API/testapi.c:
             (nan): Added an implementation of this for MSVC.
             (assertEqualsAsUTF8String): Use malloc instead of dynamically-sized
             stack arrays.
             (assertEqualsAsCharactersPtr): Ditto.
             (print_callAsFunction): Ditto.
             (main): Ditto, and explicitly cast from UniChar* to JSChar*.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    9c907cfc