Exemplo 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
}
Exemplo 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))
}
Exemplo 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)))
}