Changeset 28097 in webkit for trunk/JavaScriptCore/API/JSBase.h
- Timestamp:
- Nov 27, 2007, 8:31:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.h
r23802 r28097 59 59 typedef struct OpaqueJSValue* JSObjectRef; 60 60 61 /* JavaScript symbol exports */ 62 63 #undef JS_EXPORT 64 #if defined(WIN32) || defined(_WIN32) 65 #if defined(JS_BUILDING_JS) 66 #define JS_EXPORT __declspec(dllexport) extern 67 #else 68 #define JS_EXPORT __declspec(dllimport) extern 69 #endif 70 #elif defined(__GNUC__) 71 #define JS_EXPORT __attribute__((visibility("default"))) 72 #else 73 #define JS_EXPORT extern 74 #endif 75 61 76 #ifdef __cplusplus 62 77 extern "C" { … … 76 91 @result The JSValue that results from evaluating script, or NULL if an exception is thrown. 77 92 */ 78 JS ValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);93 JS_EXPORT JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 79 94 80 95 /*! … … 88 103 @result true if the script is syntactically correct, otherwise false. 89 104 */ 90 bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception);105 JS_EXPORT bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception); 91 106 92 107 /*! … … 104 119 JSGlobalContextRef's global object, along with the global object itself. 105 120 */ 106 void JSGarbageCollect(JSContextRef ctx);121 JS_EXPORT void JSGarbageCollect(JSContextRef ctx); 107 122 108 123 #ifdef __cplusplus
Note:
See TracChangeset
for help on using the changeset viewer.