Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ScriptInterface.cpp File Reference

Abstractions of various SpiderMonkey features. More...

#include "precompiled.h"
#include "ScriptInterface.h"
#include "lib/debug.h"
#include "lib/utf8.h"
#include "ps/CLogger.h"
#include "ps/Filesystem.h"
#include "ps/Profile.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/ScriptContext.h"
#include "scriptinterface/ScriptExtraHeaders.h"
#include "scriptinterface/ScriptStats.h"
#include "scriptinterface/StructuredClone.h"
#include <map>
#include <string>
#include <boost/preprocessor/punctuation/comma_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/flyweight.hpp>
#include <boost/flyweight/key_value.hpp>
#include <boost/flyweight/no_locking.hpp>
#include <boost/flyweight/no_tracking.hpp>
Include dependency graph for ScriptInterface.cpp:

Classes

struct  ScriptInterface_impl
 

Namespaces

namespace  anonymous_namespace{ScriptInterface.cpp}
 

Macros

#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
 

Functions

bool anonymous_namespace{ScriptInterface.cpp}::print (JSContext *cx, uint argc, JS::Value *vp)
 
bool anonymous_namespace{ScriptInterface.cpp}::logmsg (JSContext *cx, uint argc, JS::Value *vp)
 
bool anonymous_namespace{ScriptInterface.cpp}::warn (JSContext *cx, uint argc, JS::Value *vp)
 
bool anonymous_namespace{ScriptInterface.cpp}::error (JSContext *cx, uint argc, JS::Value *vp)
 
JS::Value anonymous_namespace{ScriptInterface.cpp}::deepcopy (const ScriptRequest &rq, JS::HandleValue val)
 
JS::Value anonymous_namespace{ScriptInterface.cpp}::deepfreeze (const ScriptInterface &scriptInterface, JS::HandleValue val)
 
void anonymous_namespace{ScriptInterface.cpp}::ProfileStart (const std::string &regionName)
 
void anonymous_namespace{ScriptInterface.cpp}::ProfileStop ()
 
void anonymous_namespace{ScriptInterface.cpp}::ProfileAttribute (const std::string &attr)
 
static double anonymous_namespace{ScriptInterface.cpp}::generate_uniform_real (boost::rand48 &rng, double min, double max)
 

Variables

JSClassOps anonymous_namespace{ScriptInterface.cpp}::global_classops
 
JSClass anonymous_namespace{ScriptInterface.cpp}::global_class
 

Detailed Description

Abstractions of various SpiderMonkey features.

Engine code should be using functions of these interfaces rather than directly accessing the underlying JS api.

Macro Definition Documentation

◆ BOOST_MULTI_INDEX_DISABLE_SERIALIZATION

#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION