示例#1
0
文件: State.go 项目: rdlaitila/leaf
// 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
}
示例#2
0
文件: state.go 项目: halturin/luajit
// 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
}
示例#3
0
文件: lua.go 项目: matthewtidd/golua
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
}
示例#4
0
func Lua_iscfunction(L Lua_State, idx int) bool {
	return C.lua_iscfunction(Lua_CStatePtr(L), C.int(idx)) != 0
}