MCPcopy Index your code
hub / github.com/Shopify/go-lua / Pop

Method Pop

lua.go:1474–1474  ·  view source on GitHub ↗

Pop pops n elements from the stack. http://www.lua.org/manual/5.2/manual.html#lua_pop

(n int)

Source from the content-addressed store, hash-verified

1472//
1473// http://www.lua.org/manual/5.2/manual.html#lua_pop
1474func (l *State) Pop(n int) { l.SetTop(-n - 1) }
1475
1476// NewTable creates a new empty table and pushes it onto the stack. It is
1477// equivalent to l.CreateTable(0, 0).

Callers 15

TestParserFunction · 0.95
TestTableNextFunction · 0.95
OpenLibrariesFunction · 0.80
loadHelperFunction · 0.80
ReadMethod · 0.80
base.goFile · 0.80
protectedTestParserFunction · 0.80
StringOpenFunction · 0.80
LessMethod · 0.80
table.goFile · 0.80
readFunction · 0.80
IOOpenFunction · 0.80

Calls 1

SetTopMethod · 0.95

Tested by 4

TestParserFunction · 0.76
TestTableNextFunction · 0.76
protectedTestParserFunction · 0.64
TestUserDataFunction · 0.64