/* this function can be called asynchronous (e.g. during a signal)  */
LUA_API int lua_sethook(lua_State *L, lua_Hook func, int mask, int count)
/* this function can be called asynchronous (e.g. during a signal)  */
LUA_API int lua_sethook(lua_State *L, lua_Hook func, int mask, int count)
{
    mask = 0;
    func = NULL;
  }
  L->hook = func;
  L->basehookcount = count;
  resethookcount(L);
  L->hookmask = cast_byte(mask);
  return 1;
}