// Returns true if the value at the given valid index is a Go function, // and false otherwise. func (this *State) Isgofunction(index int) bool { return int(C.lua_iscfunction(this.luastate, C.int(index))) == 1 }
// Returns true if the value at the given valid index is a Go function, // and false otherwise. func (s *State) Isgofunction(index int) bool { return int(C.lua_iscfunction(s.l, C.int(index))) == 1 }
func (L *State) IsGoFunction(index int) bool { //TODO:go function is now a userdatum, not a c function, so this will not work return C.lua_iscfunction(L.s, C.int(index)) == 1 }
func Lua_iscfunction(L Lua_State, idx int) bool { return C.lua_iscfunction(Lua_CStatePtr(L), C.int(idx)) != 0 }