MCPcopy Index your code
hub / github.com/yuin/gopher-lua / SetFuncs

Method SetFuncs

auxlib.go:307–312  ·  view source on GitHub ↗
(tb *LTable, funcs map[string]LGFunction, upvalues ...LValue)

Source from the content-addressed store, hash-verified

305}
306
307func (ls *LState) SetFuncs(tb *LTable, funcs map[string]LGFunction, upvalues ...LValue) *LTable {
308 for fname, fn := range funcs {
309 tb.RawSetString(fname, ls.NewClosure(fn, upvalues...))
310 }
311 return tb
312}
313
314/* }}} */
315

Callers 2

OpenIoFunction · 0.80
OpenChannelFunction · 0.80

Calls 2

NewClosureMethod · 0.95
RawSetStringMethod · 0.80

Tested by

no test coverage detected