int lua_gethookmask (lua_State *L);

Returns the current hook mask.