Skip to content

mah0x211/lua-loadchunk

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

lua-loadchunk

test Coverage Status

Lua chunk loader module.


Installation

luarocks install loadchunk

fn, err = loadchunk.string( str [, env [, ident]] )

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.

fn, err = loadchunk.file( pathname [, env] )

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.

About

Lua chunk loader module

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages