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

Method printCallStack

state.go:709–725  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

707}
708
709func (ls *LState) printCallStack() {
710 println("-------------------------")
711 for i := 0; i < ls.stack.Sp(); i++ {
712 print(i)
713 print(" ")
714 frame := ls.stack.At(i)
715 if frame == nil {
716 break
717 }
718 if frame.Fn.IsG {
719 println("IsG:", true, "Frame:", frame, "Fn:", frame.Fn)
720 } else {
721 println("IsG:", false, "Frame:", frame, "Fn:", frame.Fn, "pc:", frame.Pc)
722 }
723 }
724 println("-------------------------")
725}
726
727func (ls *LState) closeAllUpvalues() { // +inline-start
728 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