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

Method DoFile

auxlib.go:396–403  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

394}
395
396func (ls *LState) DoFile(path string) error {
397 if fn, err := ls.LoadFile(path); err != nil {
398 return err
399 } else {
400 ls.Push(fn)
401 return ls.PCall(0, MultRet, nil)
402 }
403}
404
405func (ls *LState) DoString(source string) error {
406 if fn, err := ls.LoadString(source); err != nil {

Callers 2

testScriptDirFunction · 0.80
mainAuxFunction · 0.80

Calls 3

LoadFileMethod · 0.95
PushMethod · 0.95
PCallMethod · 0.95

Tested by 1

testScriptDirFunction · 0.64