Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/scriptinterface/ScriptEngine.h
Show All 17 Lines | |||||
#ifndef INCLUDED_SCRIPTENGINE | #ifndef INCLUDED_SCRIPTENGINE | ||||
#define INCLUDED_SCRIPTENGINE | #define INCLUDED_SCRIPTENGINE | ||||
#include "ScriptTypes.h" | #include "ScriptTypes.h" | ||||
#include "ps/Singleton.h" | #include "ps/Singleton.h" | ||||
#include "js/Initialization.h" | #include "js/Initialization.h" | ||||
#include <list> | |||||
/** | /** | ||||
* A class using the RAII (Resource Acquisition Is Initialization) idiom to manage initialization | * A class using the RAII (Resource Acquisition Is Initialization) idiom to manage initialization | ||||
* and shutdown of the SpiderMonkey script engine. It also keeps a count of active script contexts | * and shutdown of the SpiderMonkey script engine. It also keeps a count of active script contexts | ||||
* in order to validate the following constraints: | * in order to validate the following constraints: | ||||
* 1. JS_Init must be called before any ScriptContexts are initialized | * 1. JS_Init must be called before any ScriptContexts are initialized | ||||
* 2. JS_Shutdown must be called after all ScriptContexts have been destroyed | * 2. JS_Shutdown must be called after all ScriptContexts have been destroyed | ||||
*/ | */ | ||||
Show All 23 Lines |
Wildfire Games · Phabricator