Example #1
0
File: lua.go Project: szll/golua
// lua_isuserdata
func (L *State) IsUserdata(index int) bool { return C.lua_isuserdata(L.s, C.int(index)) == 1 }
Example #2
0
func Lua_isuserdata(L Lua_State, idx int) bool {
	return C.lua_isuserdata(Lua_CStatePtr(L), C.int(idx)) != 0
}