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

Method callGo

stack.go:251–266  ·  view source on GitHub ↗
(f value, function int, resultCount int)

Source from the content-addressed store, hash-verified

249}
250
251func (l *State) callGo(f value, function int, resultCount int) {
252 l.checkStack(MinStack)
253 l.pushGoFrame(function, resultCount)
254 if l.hookMask&MaskCall != 0 {
255 l.hook(HookCall, -1)
256 }
257 var n int
258 switch f := f.(type) {
259 case *goClosure:
260 n = f.function(l)
261 case *goFunction:
262 n = f.Function(l)
263 }
264 apiCheckStackSpace(l, n)
265 l.postCall(l.top - n)
266}
267
268func (l *State) preCall(function int, resultCount int) bool {
269 for {

Callers 1

preCallMethod · 0.95

Calls 5

checkStackMethod · 0.95
pushGoFrameMethod · 0.95
hookMethod · 0.95
postCallMethod · 0.95
apiCheckStackSpaceFunction · 0.85

Tested by

no test coverage detected