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

Method PushValue

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

PushValue pushes a copy of the element at index onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushvalue

(index int)

Source from the content-addressed store, hash-verified

1425//
1426// http://www.lua.org/manual/5.2/manual.html#lua_pushvalue
1427func (l *State) PushValue(index int) { l.apiPush(l.indexToValue(index)) }
1428
1429// PushNil pushes a nil value onto the stack.
1430//

Callers 15

checkUpValueMethod · 0.95
TestTableNextFunction · 0.95
ExampleFunction · 0.95
debug.goFile · 0.80
pairsFunction · 0.80
loadHelperFunction · 0.80
ReadMethod · 0.80
base.goFile · 0.80
StringOpenFunction · 0.80
LessMethod · 0.80
table.goFile · 0.80
ioFileHelperFunction · 0.80

Calls 2

apiPushMethod · 0.95
indexToValueMethod · 0.95

Tested by 2

TestTableNextFunction · 0.76
ExampleFunction · 0.76