yield from interrupt

This commit is contained in:
luca salmin 2022-03-08 14:07:23 +01:00
parent dbdf91f3ca
commit 904ce427d0

View file

@ -77,6 +77,11 @@
if (LUAU_UNLIKELY(!!interrupt)) \
{ /* the interrupt hook is called right before we advance pc */ \
VM_PROTECT(L->ci->savedpc++; interrupt(L, -1)); \
if (L->status != 0) \
{ \
L->ci->savedpc--; \
goto exit; \
} \
} \
}
#endif