示例#1
0
func CallMeta(L *State, obj int, e string) int {
	Ce := C.CString(e)
	ret := int(C.luaL_callmeta(L.s, C.int(obj), Ce))
	C.free(unsafe.Pointer(Ce))
	return ret
}
示例#2
0
文件: lauxlib.go 项目: 1lann/golua
// luaL_callmeta
func (L *State) CallMeta(obj int, e string) int {
	Ce := C.CString(e)
	defer C.free(unsafe.Pointer(Ce))
	return int(C.luaL_callmeta(L.s, C.int(obj), Ce))
}
示例#3
0
文件: lauxlib.go 项目: afitz/golua
func CallMeta(L *State, obj int, e string) int {
	return int(C.luaL_callmeta(L.s, C.int(obj), C.CString(e)))
}