diff --git a/src/ffi.rs b/src/ffi.rs index dfb2878..4d1c48e 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -59,8 +59,8 @@ pub const LUA_GCISRUNNING: c_int = 9; #[link(name = "lua5.3")] extern "C" { pub fn lua_newstate(alloc: lua_Alloc, ud: *mut c_void) -> *mut lua_State; - pub fn lua_close(state: *mut lua_State); + pub fn lua_callk( state: *mut lua_State, nargs: c_int, diff --git a/src/util.rs b/src/util.rs index 13537a4..af6a50d 100644 --- a/src/util.rs +++ b/src/util.rs @@ -293,13 +293,11 @@ where Ok(Err(err)) => { ffi::luaL_checkstack(state, 2, ptr::null()); push_wrapped_error(state, err); - println!("erroring..."); ffi::lua_error(state) } Err(p) => { ffi::luaL_checkstack(state, 2, ptr::null()); push_wrapped_panic(state, p); - println!("erroring..."); ffi::lua_error(state) } }