Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 7fbb7ab

Browse files
authored
Add return to lua_cpcall
1 parent c2b2872 commit 7fbb7ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub struct LuaSharedInterface {
2626
pub luaL_loadstring: extern fn(state: LuaState, code: CharBuf) -> CInt,
2727
pub lua_pcall: extern fn(state: LuaState, nargs: CInt, nresults: CInt, msgh: CInt) -> CInt,
2828
pub lua_call: extern fn(state: LuaState, nargs: CInt, nresults: CInt) -> CInt,
29-
pub lua_cpcall: extern fn(state: LuaState, func: LuaCFunction, userdata: *mut CVoid ),
29+
pub lua_cpcall: extern fn(state: LuaState, func: LuaCFunction, userdata: *mut CVoid ) -> CInt,
3030

3131
// Setters
3232
pub lua_setfield: extern fn(state: LuaState, idx: CInt, name: CharBuf),
@@ -144,4 +144,4 @@ pub static LUA_SHARED: Lazy< Container<LuaSharedInterface> > = Lazy::new(|| {
144144
Ok(lib) => lib,
145145
Err(why) => panic!("Path DLL tried to load: {}, Error Reason: {}. Report this on github.", dll_path.display(), why)
146146
}
147-
});
147+
});

0 commit comments

Comments
 (0)