Skip to content

Commit

Permalink
yield from interrupt #287 (#413)
Browse files Browse the repository at this point in the history
Co-authored-by: luca salmin <luca.salmin@studioevil.com>
  • Loading branch information
morgoth990 and LucaSalmin committed Mar 14, 2022
1 parent fe71aff commit 4fdead5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions VM/src/lvmexecute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fdead5

Please sign in to comment.