Skip to content

Commit

Permalink
mlua-sys: fix Lua 5.2 lua_sethook definition
Browse files Browse the repository at this point in the history
  • Loading branch information
khvzak committed Jan 3, 2024
1 parent bf79d6c commit 69ff0c5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mlua-sys/src/lua52/lua.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 69ff0c5

Please sign in to comment.