1
0
mirror of https://github.com/janet-lang/janet synced 2025-12-12 11:38:08 +00:00

Add cancel function.

This should allow better stack unwinding on a fiber that
no longer needs to complete.
This commit is contained in:
Calvin Rose
2020-08-22 15:35:37 -05:00
parent b1d8ee19ca
commit 28439d822a
9 changed files with 53 additions and 2 deletions

View File

@@ -1131,6 +1131,7 @@ enum JanetOpCode {
JOP_NEXT,
JOP_NOT_EQUALS,
JOP_NOT_EQUALS_IMMEDIATE,
JOP_CANCEL,
JOP_INSTRUCTION_COUNT
};