Pyrogenesis  trunk
Functions | Variables
anonymous_namespace{ScriptInterface.cpp} Namespace Reference

Functions

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

Variables

JSClassOps global_classops
 
JSClass global_class
 

Function Documentation

◆ deepcopy()

JS::Value anonymous_namespace{ScriptInterface.cpp}::deepcopy ( const ScriptRequest rq,
JS::HandleValue  val 
)

◆ deepfreeze()

JS::Value anonymous_namespace{ScriptInterface.cpp}::deepfreeze ( const ScriptInterface scriptInterface,
JS::HandleValue  val 
)

◆ error()

bool anonymous_namespace{ScriptInterface.cpp}::error ( JSContext *  cx,
uint  argc,
JS::Value *  vp 
)

◆ generate_uniform_real()

static double anonymous_namespace{ScriptInterface.cpp}::generate_uniform_real ( boost::rand48 &  rng,
double  min,
double  max 
)
static

◆ logmsg()

bool anonymous_namespace{ScriptInterface.cpp}::logmsg ( JSContext *  cx,
uint  argc,
JS::Value *  vp 
)

◆ print()

bool anonymous_namespace{ScriptInterface.cpp}::print ( JSContext *  cx,
uint  argc,
JS::Value *  vp 
)

◆ ProfileAttribute()

void anonymous_namespace{ScriptInterface.cpp}::ProfileAttribute ( const std::string &  attr)

◆ ProfileStart()

void anonymous_namespace{ScriptInterface.cpp}::ProfileStart ( const std::string &  regionName)

◆ ProfileStop()

void anonymous_namespace{ScriptInterface.cpp}::ProfileStop ( )

◆ warn()

bool anonymous_namespace{ScriptInterface.cpp}::warn ( JSContext *  cx,
uint  argc,
JS::Value *  vp 
)

Variable Documentation

◆ global_class

JSClass anonymous_namespace{ScriptInterface.cpp}::global_class
Initial value:
= {
"global", JSCLASS_GLOBAL_FLAGS, &global_classops
}
JSClassOps global_classops
Definition: ScriptInterface.cpp:105

◆ global_classops

JSClassOps anonymous_namespace{ScriptInterface.cpp}::global_classops
Initial value:
= {
nullptr, nullptr,
nullptr, nullptr,
nullptr, nullptr, nullptr,
nullptr, nullptr, nullptr,
JS_GlobalObjectTraceHook
}