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

Method printCallStack

_state.go:609–625  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

607}
608
609func (ls *LState) printCallStack() {
610 println("-------------------------")
611 for i := 0; i < ls.stack.Sp(); i++ {
612 print(i)
613 print(" ")
614 frame := ls.stack.At(i)
615 if frame == nil {
616 break
617 }
618 if frame.Fn.IsG {
619 println("IsG:", true, "Frame:", frame, "Fn:", frame.Fn)
620 } else {
621 println("IsG:", false, "Frame:", frame, "Fn:", frame.Fn, "pc:", frame.Pc)
622 }
623 }
624 println("-------------------------")
625}
626
627func (ls *LState) closeAllUpvalues() { // +inline-start
628 for cf := ls.currentFrame; cf != nil; cf = cf.Parent {

Callers

nothing calls this directly

Calls 2

SpMethod · 0.65
AtMethod · 0.65

Tested by

no test coverage detected