()
| 690 | } |
| 691 | |
| 692 | func (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 | |
| 709 | func (ls *LState) printCallStack() { |
| 710 | println("-------------------------") |
no test coverage detected