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

Function loadHelper

base.go:69–82  ·  view source on GitHub ↗
(l *State, s error, e int)

Source from the content-addressed store, hash-verified

67}
68
69func loadHelper(l *State, s error, e int) int {
70 if s == nil {
71 if e != 0 {
72 l.PushValue(e)
73 if _, ok := SetUpValue(l, -2, 1); !ok {
74 l.Pop(1)
75 }
76 }
77 return 1
78 }
79 l.PushNil()
80 l.Insert(-2)
81 return 2
82}
83
84type genericReader struct {
85 l *State

Callers 1

base.goFile · 0.85

Calls 5

SetUpValueFunction · 0.85
PushValueMethod · 0.80
PopMethod · 0.80
PushNilMethod · 0.80
InsertMethod · 0.80

Tested by

no test coverage detected