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

Method ToUserData

state.go:1706–1711  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

1704}
1705
1706func (ls *LState) ToUserData(n int) *LUserData {
1707 if lv, ok := ls.Get(n).(*LUserData); ok {
1708 return lv
1709 }
1710 return nil
1711}
1712
1713func (ls *LState) ToThread(n int) *LState {
1714 if lv, ok := ls.Get(n).(*LState); ok {

Callers 1

TestToUserDataFunction · 0.45

Calls 1

GetMethod · 0.95

Tested by 1

TestToUserDataFunction · 0.36