mrdocs::lua::Scope

Stack scope guard for Lua calls.

Synopsis

Declared in <mrdocs/Support/Lua.hpp>

class Scope;

Description

Helper that balances the Lua stack for a Context scope.

Member Functions

NameDescription
Scope [constructor]Create a scope that manages Lua stack references.
~Scope [destructor]Pop any pending stack references on destruction.
getGlobal Return a value from the global table if it exists.
getGlobalTable Return the global table.
loadChunk Load a Lua chunk
loadChunkFromFile Run a Lua chunk.
pushDom Push a dom::Value onto the Lua stack.

Friends

NameDescription
mrdocs::lua::AccessInternal tag granting access to lua internals.