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

Method Pop

state.go:1556–1563  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1554}
1555
1556func (ls *LState) Pop(n int) {
1557 for i := 0; i < n; i++ {
1558 if ls.GetTop() == 0 {
1559 ls.RaiseError("register underflow")
1560 }
1561 ls.reg.Pop()
1562 }
1563}
1564
1565func (ls *LState) Insert(value LValue, index int) {
1566 reg := ls.indexToReg(index)

Callers 1

RemoveMethod · 0.95

Calls 3

GetTopMethod · 0.95
RaiseErrorMethod · 0.95
PopMethod · 0.65

Tested by

no test coverage detected