mrdocs::lua::Scope::loadChunk

Load a Lua chunk

Synopses

Load a Lua chunk

Expected<Function>
loadChunk(
    std::string_view luaChunk,
    std::source_location loc = source_location::current());

Load a Lua chunk

Expected<Function>
loadChunk(
    std::string_view luaChunk,
    zstring chunkName,
    std::source_location loc = source_location::current());

Return Value

The function if successful, or an error.

Parameters

Name

Description

luaChunk

The Lua chunk to load.

loc

The source location of the call site.

chunkName

The name of the chunk (used in error messages).

Created with MrDocs