@@ -25,7 +25,7 @@ static int foreachi(lua_State* L)
2525 lua_pushinteger (L, i); // 1st argument
2626 lua_rawgeti (L, 1 , i); // 2nd argument
2727 // ServerLua: Check for interrupt to allow pre-emptive abort before calling user iterator function
28- luau_callinterrupthandler (L, - 4 );
28+ luau_callinterrupthandler (L, LUA_INTERRUPT_STDLIB );
2929 lua_call (L, 2 , 1 );
3030 if (!lua_isnil (L, -1 ))
3131 return 1 ;
@@ -45,7 +45,7 @@ static int foreach (lua_State* L)
4545 lua_pushvalue (L, -3 ); // key
4646 lua_pushvalue (L, -3 ); // value
4747 // ServerLua: Check for interrupt to allow pre-emptive abort before calling user iterator function
48- luau_callinterrupthandler (L, - 4 );
48+ luau_callinterrupthandler (L, LUA_INTERRUPT_STDLIB );
4949 lua_call (L, 2 , 1 );
5050 if (!lua_isnil (L, -1 ))
5151 return 1 ;
@@ -334,7 +334,7 @@ static int sort_func(lua_State* L, const TValue* l, const TValue* r)
334334 setobj2s (L, L->top + 2 , r);
335335 L->top += 3 ; // safe because of LUA_MINSTACK guarantee
336336 // ServerLua: Check for interrupt to allow pre-emptive abort before calling user comparison function
337- luau_callinterrupthandler (L, - 4 );
337+ luau_callinterrupthandler (L, LUA_INTERRUPT_STDLIB );
338338 luaD_call (L, L->top - 3 , 1 );
339339 L->top -= 1 ; // maintain stack depth
340340
0 commit comments