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

Abstractions of various SpiderMonkey features. More...

#include "precompiled.h"
#include "Interface.h"
#include "lib/debug.h"
#include "lib/file/vfs/vfs_path.h"
#include "lib/file/vfs/vfs_util.h"
#include "lib/utf8.h"
#include "ps/CLogger.h"
#include "ps/CStr.h"
#include "ps/Filesystem.h"
#include "ps/Profile.h"
#include "ps/Profiler2.h"
#include "ps/ThreadUtil.h"
#include "scriptinterface/FunctionWrapper.h"
#include "scriptinterface/ModuleLoader.h"
#include "scriptinterface/Object.h"
#include "scriptinterface/Context.h"
#include "scriptinterface/Stats.h"
#include "scriptinterface/StructuredClone.h"
#include <cstdio>
#include <cstring>
#include <js/CallAndConstruct.h>
#include <js/Class.h>
#include <js/ComparisonOperators.h>
#include <js/CompilationAndEvaluation.h>
#include <js/CompileOptions.h>
#include <js/GCVector.h>
#include <js/GlobalObject.h>
#include <js/PropertyAndElement.h>
#include <js/PropertyDescriptor.h>
#include <js/Realm.h>
#include <js/RealmOptions.h>
#include <js/SourceText.h>
#include <jsapi.h>
#include <mozilla/Maybe.h>
#include <string>
#include <vector>
#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 Interface.cpp:

Classes

struct  Script::Interface_impl
 

Namespaces

namespace  JS
 
namespace  mozilla
 
namespace  Script
 Abstraction around a SpiderMonkey JSContext.
 
namespace  anonymous_namespace{Interface.cpp}
 

Macros

#define BOOST_MULTI_INDEX_DISABLE_SERIALIZATION
 

Functions

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

Variables

JSClassOps anonymous_namespace{Interface.cpp}::global_classops
 
JSClass anonymous_namespace{Interface.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