mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
Co-authored-by: luca salmin <luca.salmin@studioevil.com>
This commit is contained in:
parent
fe71aff7af
commit
4fdead5e3c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user