Load a Lua chunk
<mrdocs/Support/Lua.hpp>
Load a Lua chunk
Expected<Function>
loadChunk(
std::string_view luaChunk,
std::source_location loc = source_location::current());
» more...
Load a Lua chunk
Expected<Function>
loadChunk(
std::string_view luaChunk,
zstring chunkName,
std::source_location loc = source_location::current());
» more...
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). |