Lua chunk loader module.
luarocks install loadchunk
returns the compiled chunk as a function.
Parameters
str:string
: chunk string.env:table
: chunk environment.ident:string
: used as the chunk name for error messages and debug information.
Returns
fn:function
: compiled chunk as a function.err:string
: error message.
returns the compiled chunk as a function.
Parameters
pathname:string
: pathname of chunk file.env:table
: chunk environment.
Returns
fn:function
: compiled chunk as a function.err:string
: error message.