Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
ScriptContext.h File Reference
#include "ScriptTypes.h"
#include "ScriptExtraHeaders.h"
#include <list>
Include dependency graph for ScriptContext.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScriptContext
 Abstraction around a SpiderMonkey JSContext. More...
 

Namespaces

namespace  Script
 Wraps SM APIs for manipulating JS objects.
 

Variables

constexpr int DEFAULT_CONTEXT_SIZE = 16 * 1024 * 1024
 
constexpr int DEFAULT_HEAP_GROWTH_BYTES_GCTRIGGER = 2 * 1024 * 1024
 
thread_local std::shared_ptr< ScriptContextg_ScriptContext
 

Variable Documentation

◆ DEFAULT_CONTEXT_SIZE

constexpr int DEFAULT_CONTEXT_SIZE = 16 * 1024 * 1024
constexpr

◆ DEFAULT_HEAP_GROWTH_BYTES_GCTRIGGER

constexpr int DEFAULT_HEAP_GROWTH_BYTES_GCTRIGGER = 2 * 1024 * 1024
constexpr

◆ g_ScriptContext

thread_local std::shared_ptr<ScriptContext> g_ScriptContext
extern