(f value, function int, resultCount int)
| 249 | } |
| 250 | |
| 251 | func (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 | |
| 268 | func (l *State) preCall(function int, resultCount int) bool { |
| 269 | for { |
no test coverage detected