]> Repositorios git - scryer-prolog.git/commitdiff
call '$erase_ball' before running cleanup code in setup_call_cleanup (#886)
authorMark Thom <[email protected]>
Wed, 24 Mar 2021 22:56:48 +0000 (16:56 -0600)
committerMark Thom <[email protected]>
Wed, 24 Mar 2021 22:56:53 +0000 (16:56 -0600)
src/lib/iso_ext.pl

index 4d064193c217719a70d6a6c46546fc276c9538d5..be44099f159db3af35b03502b293c3791b2d6b52 100644 (file)
@@ -86,8 +86,8 @@ scc_helper(C, G, Bb) :-
 scc_helper(_, _, Bb) :-
     '$reset_block'(Bb),
     '$get_ball'(Ball),
-    '$call_with_default_policy'(run_cleaners_with_handling),
     '$erase_ball',
+    '$call_with_default_policy'(run_cleaners_with_handling),
     '$call_with_default_policy'(throw(Ball)).
 scc_helper(_, _, _) :-
     '$get_cp'(Cp),