pub fn set_hook(
state: &mut LuaState,
func: Option<Box<dyn FnMut(&mut LuaState, &LuaDebug)>>,
mask: i32,
count: i32,
)Expand description
Installs a debug hook on thread state.
C: LUA_API void lua_sethook(lua_State *L, lua_Hook func, int mask, int count)