MCPcopy Create free account
hub / github.com/Shopify/go-lua / PushLightUserData

Method PushLightUserData

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

PushLightUserData pushes a light user data onto the stack. Userdata represents Go values in Lua. A light userdata is an interface{}. Its equality matches the Go rules (http://golang.org/ref/spec#Comparison_operators). http://www.lua.org/manual/5.2/manual.html#lua_pushlightuserdata

(d interface{})

Source from the content-addressed store, hash-verified

1457//
1458// http://www.lua.org/manual/5.2/manual.html#lua_pushlightuserdata
1459func (l *State) PushLightUserData(d interface{}) { l.apiPush(d) }
1460
1461// PushUserData is similar to PushLightUserData, but pushes a full userdata
1462// onto the stack.

Callers 1

debug.goFile · 0.80

Calls 1

apiPushMethod · 0.95

Tested by

no test coverage detected