mrdocs::lua::Scope

Stack scope guard for Lua calls.

Synopsis

class Scope;

Description

Helper that balances the Lua stack for a Context scope.

Member Functions

Name

Description

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

Name

Description

mrdocs::lua::Access

Internal tag granting access to lua internals.

Created with MrDocs