Pyrogenesis
13997
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
scripting
SpiderMonkey.h
Go to the documentation of this file.
1
/* Copyright (C) 2009 Wildfire Games.
2
* This file is part of 0 A.D.
3
*
4
* 0 A.D. is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* 0 A.D. is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef INCLUDED_SPIDERMONKEY
19
#define INCLUDED_SPIDERMONKEY
20
21
// Master header for the SpiderMonkey Javascript library.
22
//
23
// Include this instead of accessing any <js*.h> headers directly.
24
// Rationale: they require an OS macro to be set (XP_*).
25
// Since this is specific to SpiderMonkey, we don't want to saddle
26
// another obscure header with it (would make reuse harder).
27
// Instead, do it here where the purpose is clear.
28
//
29
// This doesn't go in ScriptingHost.h because some other files
30
// (notably precompiled.h and i18n/ScriptInterface.cpp) want only these
31
// definitions without pulling in the whole of ScriptingHost.
32
33
// (Actually that XP_* stuff is handled by the newer scriptinterface
34
// code instead; this file no longer does anything interesting)
35
36
#include "
scriptinterface/ScriptTypes.h
"
37
38
#include "
JSUtil.h
"
39
40
// Make JS debugging a little easier by automatically naming GC roots
41
// Don't simply #define NAME_ALL_GC_ROOTS, because jsapi.h is horridly broken
42
#ifndef NDEBUG
43
# define JS_AddRoot(cx, rp) JS_AddNamedRoot((cx), (rp), __FILE__ )
44
#endif
45
46
#endif // INCLUDED_SPIDERMONKEY
ScriptTypes.h
JSUtil.h
Generated on Mon Oct 14 2013 00:58:08 for Pyrogenesis by
1.8.5