Oolite
1.91.0.7644-241112-7f5034b
Loading...
Searching...
No Matches
src
Core
Scripting
OOJSSpecialFunctions.h
Go to the documentation of this file.
1
/*
2
3
OOJSSpecialFunctions.h
4
5
Special functions for certain scripts, currently the global prefix script and
6
the debug console script. Note that it's possible for other scripts to get at
7
the "special" object through the debug console object
8
(debugConsole.script.special). If putting actually dangerous functions in here,
9
it'd be a good idea to learn to use SpiderMonkey's security architecture
10
(JSPrincipals and such).
11
12
13
Oolite
14
Copyright (C) 2004-2013 Giles C Williams and contributors
15
16
This program is free software; you can redistribute it and/or
17
modify it under the terms of the GNU General Public License
18
as published by the Free Software Foundation; either version 2
19
of the License, or (at your option) any later version.
20
21
This program is distributed in the hope that it will be useful,
22
but WITHOUT ANY WARRANTY; without even the implied warranty of
23
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
GNU General Public License for more details.
25
26
You should have received a copy of the GNU General Public License
27
along with this program; if not, write to the Free Software
28
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
29
MA 02110-1301, USA.
30
31
*/
32
33
#import "
OOJavaScriptEngine.h
"
34
35
36
void
InitOOJSSpecialFunctions
(JSContext *context, JSObject *global);
37
OOJSValue
*
JSSpecialFunctionsObjectWrapper
(JSContext *context);
JSSpecialFunctionsObjectWrapper
OOJSValue * JSSpecialFunctionsObjectWrapper(JSContext *context)
Definition
OOJSSpecialFunctions.m:52
InitOOJSSpecialFunctions
void InitOOJSSpecialFunctions(JSContext *context, JSObject *global)
Definition
OOJSSpecialFunctions.m:47
OOJavaScriptEngine.h
OOJSValue
Definition
OOJavaScriptEngine.h:263
Generated by
1.12.0