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

Method printReg

state.go:692–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

690}
691
692func (ls *LState) printReg() {
693 println("-------------------------")
694 println("thread:", ls)
695 println("top:", ls.reg.Top())
696 if ls.currentFrame != nil {
697 println("function base:", ls.currentFrame.Base)
698 println("return base:", ls.currentFrame.ReturnBase)
699 } else {
700 println("(vm not started)")
701 }
702 println("local base:", ls.currentLocalBase())
703 for i := 0; i < ls.reg.Top(); i++ {
704 println(i, ls.reg.Get(i).String())
705 }
706 println("-------------------------")
707}
708
709func (ls *LState) printCallStack() {
710 println("-------------------------")

Callers 1

base_PrintRegsFunction · 0.45

Calls 4

currentLocalBaseMethod · 0.95
StringMethod · 0.65
TopMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected