MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_sethook

Function lua_sethook

Source/Misc/lua/src/lua.c:4564–4574  ·  view source on GitHub ↗

** this function can be called asynchronous (e.g. during a signal) */

Source from the content-addressed store, hash-verified

4562** this function can be called asynchronous (e.g. during a signal)
4563*/
4564LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) {
4565if (func == NULL || mask == 0) { /* turn off hooks? */
4566mask = 0;
4567func = NULL;
4568}
4569L->hook = func;
4570L->basehookcount = count;
4571resethookcount(L);
4572L->hookmask = cast_byte(mask);
4573return 1;
4574}
4575
4576
4577LUA_API lua_Hook lua_gethook (lua_State *L) {

Callers 1

db_sethookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected