18#ifndef INCLUDED_SCRIPT_ENGINE
19#define INCLUDED_SCRIPT_ENGINE
24#include <js/Initialization.h>
27#if MOZJS_MAJOR_VERSION != 128
28#error Your compiler is trying to use an incorrect major version of the \
29SpiderMonkey library. The SpiderMonkey API is subject to changes, and the \
30game will not build with the selected version of the library. Make sure \
31you have got all the right files and include paths.
52 ENSURE(
m_Contexts.empty() &&
"JS_Init must be called before any contexts are created!");
58 ENSURE(
m_Contexts.empty() &&
"All contexts must be destroyed before calling JS_ShutDown!");
std::list< const JSContext * > m_Contexts
Definition: Engine.h:66
void RegisterContext(const JSContext *cx)
Definition: Engine.h:62
Engine()
Definition: Engine.h:50
~Engine()
Definition: Engine.h:56
void UnRegisterContext(const JSContext *cx)
Definition: Engine.h:63
Template base class for singletons.
Definition: Singleton.h:35
#define ENSURE(expr)
ensure the expression <expr> evaluates to non-zero.
Definition: debug.h:222
Abstraction around a SpiderMonkey JSContext.
Definition: DapInterface.h:32