Esempio n. 1
0
func CheckUdata(L *State, narg int, tname string) unsafe.Pointer {
	Ctname := C.CString(tname)
	ret := unsafe.Pointer(C.luaL_checkudata(L.s, C.int(narg), Ctname))
	C.free(unsafe.Pointer(Ctname))
	return ret
}
Esempio n. 2
0
// luaL_checkudata
func (L *State) CheckUdata(narg int, tname string) unsafe.Pointer {
	Ctname := C.CString(tname)
	defer C.free(unsafe.Pointer(Ctname))
	return unsafe.Pointer(C.luaL_checkudata(L.s, C.int(narg), Ctname))
}
Esempio n. 3
0
func CheckUdata(L *State, narg int, tname string) unsafe.Pointer {
	return unsafe.Pointer(C.luaL_checkudata(L.s, C.int(narg), C.CString(tname)))
}