yield from interrupt #287 (#413)

Co-authored-by: luca salmin <luca.salmin@studioevil.com>
This commit is contained in:
Luca Salmin 2022-03-14 19:43:40 +01:00 committed by GitHub
parent fe71aff7af
commit 4fdead5e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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