- Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathjavascript_function.h
More file actions
Latest commit
19 lines (13 loc) · 482 Bytes
/
Copy pathjavascript_function.h
File metadata and controls
19 lines (13 loc) · 482 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _JAVASCRIPT_FUNCTION_H__
#define_JAVASCRIPT_FUNCTION_H__
#ifndef _STRING_
#include<string>
using std::string;
#endif
#defineJAVASCRIPT_NATIVE_OBJECT_CONSOLE"console"
#defineJAVASCRIPT_NATIVE_OBJECT_DOCUMENT"document"
voidinit_native_function(void);
booladd_javascript_function(string base_object,string function_name,string function_argments_express,string function_code);
booleval_function(string express);
booleval_function_return(string& express);
#endif