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

Method ToUserData

_state.go:1493–1498  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1491}
1492
1493func (ls *LState) ToUserData(n int) *LUserData {
1494 if lv, ok := ls.Get(n).(*LUserData); ok {
1495 return lv
1496 }
1497 return nil
1498}
1499
1500func (ls *LState) ToThread(n int) *LState {
1501 if lv, ok := ls.Get(n).(*LState); ok {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected