34#import <Foundation/Foundation.h>
74#ifndef __has_declspec_attribute
75#define __has_declspec_attribute(x) 0
82#if defined(JS_NO_EXPORT)
84#elif defined(WIN32) || defined(_WIN32) || defined(__CC_ARM) || defined(__ARMCC__) || (__has_declspec_attribute(dllimport) && __has_declspec_attribute(dllexport))
85#if defined(BUILDING_JavaScriptCore) || defined(STATICALLY_LINKED_WITH_JavaScriptCore)
86#define JS_EXPORT __declspec(dllexport)
88#define JS_EXPORT __declspec(dllimport)
90#elif defined(__GNUC__)
91#define JS_EXPORT __attribute__((visibility("default")))
147#if !defined(JSC_OBJC_API_ENABLED)
148#if (defined(__clang__) && defined(__APPLE__) && ((defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && !defined(__i386__)) || (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE)))
149#define JSC_OBJC_API_ENABLED 1
151#define JSC_OBJC_API_ENABLED 0
struct OpaqueJSClass * JSClassRef
Definition JSBase.h:52
struct OpaqueJSString * JSStringRef
Definition JSBase.h:49
JS_EXPORT void JSGarbageCollect(JSContextRef ctx)
Performs a JavaScript garbage collection.
struct OpaqueJSContext * JSGlobalContextRef
Definition JSBase.h:46
const struct OpaqueJSContextGroup * JSContextGroupRef
Definition JSBase.h:40
struct OpaqueJSValue * JSObjectRef
Definition JSBase.h:69
const struct OpaqueJSValue * JSValueRef
Definition JSBase.h:66
void(* JSTypedArrayBytesDeallocator)(void *bytes, void *deallocatorContext)
Definition JSBase.h:61
JS_EXPORT bool JSCheckScriptSyntax(JSContextRef ctx, JSStringRef script, JSStringRef sourceURL, int startingLineNumber, JSValueRef *exception)
Checks for syntax errors in a string of JavaScript.
struct OpaqueJSPropertyNameArray * JSPropertyNameArrayRef
Definition JSBase.h:55
struct OpaqueJSPropertyNameAccumulator * JSPropertyNameAccumulatorRef
Definition JSBase.h:58
JS_EXPORT JSValueRef JSEvaluateScript(JSContextRef ctx, JSStringRef script, JSObjectRef thisObject, JSStringRef sourceURL, int startingLineNumber, JSValueRef *exception)
Evaluates a string of JavaScript.
#define JS_EXPORT
Definition JSBase.h:93
const struct OpaqueJSContext * JSContextRef
Definition JSBase.h:43