1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
cdef extern from "JavaScriptCore/JSBase.h":
struct OpaqueJSContextGroup:
pass
ctypedef OpaqueJSContextGroup* JSContextGroupRef
struct OpaqueJSContext:
pass
ctypedef OpaqueJSContext* JSContextRef
ctypedef OpaqueJSContext* JSGlobalContextRef
struct OpaqueJSString:
pass
ctypedef OpaqueJSString* JSStringRef
struct OpaqueJSClass:
pass
ctypedef OpaqueJSClass* JSClassRef
struct OpaqueJSPropertyNameArray:
pass
ctypedef OpaqueJSPropertyNameArray* JSPropertyNameArrayRef
struct OpaqueJSPropertyNameAccumulator:
pass
ctypedef OpaqueJSPropertyNameAccumulator* JSPropertyNameAccumulatorRef
struct OpaqueJSValue:
pass
ctypedef OpaqueJSValue* JSValueRef
ctypedef OpaqueJSValue* JSObjectRef
JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)
bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)
void JSGarbageCollect(JSContextRef ctx)
|