mrdocs::lua::Scope::loadChunk
Load a Lua chunk
Synopses
Declared in <mrdocs/Engines/Lua/Scope.hpp>
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());
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