1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-31 07:33:01 +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

@@ -73,6 +73,7 @@ static const JanetInstructionDef janet_ops[] = {
{"call", JOP_CALL},
{"clo", JOP_CLOSURE},
{"cmp", JOP_COMPARE},
{"cncl", JOP_CANCEL},
{"div", JOP_DIVIDE},
{"divim", JOP_DIVIDE_IMMEDIATE},
{"eq", JOP_EQUALS},