Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
anonymous_namespace{Interface.cpp} Namespace Reference

Functions

bool print (JSContext *cx, unsigned int argc, JS::Value *vp)
 
bool logmsg (JSContext *cx, unsigned int argc, JS::Value *vp)
 
bool warn (JSContext *cx, unsigned int argc, JS::Value *vp)
 
bool error (JSContext *cx, unsigned int argc, JS::Value *vp)
 
JS::Value deepcopy (const Script::Request &rq, JS::HandleValue val)
 
JS::Value deepfreeze (const Script::Interface &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{Interface.cpp}::deepcopy ( const Script::Request &  rq,
JS::HandleValue  val 
)

◆ deepfreeze()

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

◆ error()

bool anonymous_namespace{Interface.cpp}::error ( JSContext *  cx,
unsigned int  argc,
JS::Value *  vp 
)

◆ generate_uniform_real()

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

◆ logmsg()

bool anonymous_namespace{Interface.cpp}::logmsg ( JSContext *  cx,
unsigned int  argc,
JS::Value *  vp 
)

◆ print()

bool anonymous_namespace{Interface.cpp}::print ( JSContext *  cx,
unsigned int  argc,
JS::Value *  vp 
)

◆ ProfileAttribute()

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

◆ ProfileStart()

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

◆ ProfileStop()

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

◆ warn()

bool anonymous_namespace{Interface.cpp}::warn ( JSContext *  cx,
unsigned int  argc,
JS::Value *  vp 
)

Variable Documentation

◆ global_class

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

◆ global_classops

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