-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSCNEngine.h
More file actions
27 lines (20 loc) · 933 Bytes
/
SCNEngine.h
File metadata and controls
27 lines (20 loc) · 933 Bytes
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
//
// SCNEngine.h
// SproutCoreNative
//
// Created by Johannes Fahrenkrug on 18.07.11.
// Copyright 2011 Springenwerk. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
@interface SCNEngine : NSObject {
JSGlobalContextRef _jsContext;
JSClassRef _SCNClass;
}
static JSValueRef __SCNLogMethod(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
static JSValueRef __SCNToStringMethod(JSContextRef ctx, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception);
static JSValueRef __SCNGetProperty(JSContextRef ctx, JSObjectRef object, JSStringRef propertyNameJS, JSValueRef* exception);
- (JSGlobalContextRef) jsContext;
- (NSString *)runJS:(NSString *)aJSString;
- (void)loadJSLibrary:(NSString*)libraryName;
@end