MCPcopy Index your code
hub / github.com/Shopify/go-lua / NewLibrary

Function NewLibrary

auxiliary.go:457–460  ·  view source on GitHub ↗
(l *State, functions []RegistryFunction)

Source from the content-addressed store, hash-verified

455func NewLibraryTable(l *State, functions []RegistryFunction) { l.CreateTable(0, len(functions)) }
456
457func NewLibrary(l *State, functions []RegistryFunction) {
458 NewLibraryTable(l, functions)
459 SetFunctions(l, functions, 0)
460}
461
462func skipComment(r *bufio.Reader) (bool, error) {
463 bom := "\xEF\xBB\xBF"

Callers 8

Bit32OpenFunction · 0.85
DebugOpenFunction · 0.85
StringOpenFunction · 0.85
TableOpenFunction · 0.85
IOOpenFunction · 0.85
PackageOpenFunction · 0.85
MathOpenFunction · 0.85
OSOpenFunction · 0.85

Calls 2

NewLibraryTableFunction · 0.85
SetFunctionsFunction · 0.85

Tested by

no test coverage detected