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 }
// 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)) }
func CheckUdata(L *State, narg int, tname string) unsafe.Pointer { return unsafe.Pointer(C.luaL_checkudata(L.s, C.int(narg), C.CString(tname))) }