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