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

Method PushInteger

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

PushInteger pushes n onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushinteger

(n int)

Source from the content-addressed store, hash-verified

1440//
1441// http://www.lua.org/manual/5.2/manual.html#lua_pushinteger
1442func (l *State) PushInteger(n int) { l.apiPush(float64(n)) }
1443
1444// PushUnsigned pushes n onto the stack.
1445//

Callers 14

BenchmarkFibonnaciFunction · 0.95
TestTableNextFunction · 0.95
internalHookFunction · 0.80
debug.goFile · 0.80
pairsFunction · 0.80
intPairsFunction · 0.80
base.goFile · 0.80
findHelperFunction · 0.80
string.goFile · 0.80
table.goFile · 0.80
linesFunction · 0.80
math.goFile · 0.80

Calls 1

apiPushMethod · 0.95

Tested by 2

BenchmarkFibonnaciFunction · 0.76
TestTableNextFunction · 0.76