Skip to content

Commit 11fc8b2

Browse files
committed
CHANGE: make halt catchable
resolves: Oldes/Rebol-issues#1742
1 parent 7bce104 commit 11fc8b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/n-control.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ enum {
421421
if (VAL_ERR_NUM(ret) == RE_QUIT)
422422
ret = VAL_ERR_VALUE(ret);
423423
else if (VAL_ERR_NUM(ret) == RE_HALT)
424-
Halt_Code(RE_HALT, 0);
424+
VAL_SET(ret, REB_UNSET);
425+
//Halt_Code(RE_HALT, 0); // Don't use this if we want to be able catch all!
425426
else
426427
Crash(RP_NO_CATCH);
427428
*DS_RETURN = *ret;

0 commit comments

Comments
 (0)