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