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

Function baseDoFile

baselib.go:71–82  ·  view source on GitHub ↗
(L *LState)

Source from the content-addressed store, hash-verified

69}
70
71func baseDoFile(L *LState) int {
72 src := L.ToString(1)
73 top := L.GetTop()
74 fn, err := L.LoadFile(src)
75 if err != nil {
76 L.Push(LString(err.Error()))
77 L.Panic(L)
78 }
79 L.Push(fn)
80 L.Call(0, MultRet)
81 return L.GetTop() - top
82}
83
84func baseError(L *LState) int {
85 obj := L.CheckAny(1)

Callers

nothing calls this directly

Calls 7

LStringTypeAlias · 0.85
LoadFileMethod · 0.80
PushMethod · 0.65
ErrorMethod · 0.65
ToStringMethod · 0.45
GetTopMethod · 0.45
CallMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…