Example #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
}
Example #2
0
// 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))
}
Example #3
0
func CallMeta(L *State, obj int, e string) int {
	return int(C.luaL_callmeta(L.s, C.int(obj), C.CString(e)))
}