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

Method Pop

_state.go:1343–1350  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1341}
1342
1343func (ls *LState) Pop(n int) {
1344 for i := 0; i < n; i++ {
1345 if ls.GetTop() == 0 {
1346 ls.RaiseError("register underflow")
1347 }
1348 ls.reg.Pop()
1349 }
1350}
1351
1352func (ls *LState) Insert(value LValue, index int) {
1353 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