diff options
-rw-r--r-- | mlua-sys/src/lua52/lua.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mlua-sys/src/lua52/lua.rs b/mlua-sys/src/lua52/lua.rs index d668d67..f7bdbdf 100644 --- a/mlua-sys/src/lua52/lua.rs +++ b/mlua-sys/src/lua52/lua.rs @@ -462,7 +462,12 @@ extern "C-unwind" { pub fn lua_upvalueid(L: *mut lua_State, fidx: c_int, n: c_int) -> *mut c_void; pub fn lua_upvaluejoin(L: *mut lua_State, fidx1: c_int, n1: c_int, fidx2: c_int, n2: c_int); - pub fn lua_sethook(L: *mut lua_State, func: Option<lua_Hook>, mask: c_int, count: c_int); + pub fn lua_sethook( + L: *mut lua_State, + func: Option<lua_Hook>, + mask: c_int, + count: c_int, + ) -> c_int; pub fn lua_gethook(L: *mut lua_State) -> Option<lua_Hook>; pub fn lua_gethookmask(L: *mut lua_State) -> c_int; pub fn lua_gethookcount(L: *mut lua_State) -> c_int; |