restore setup_call_cleanup/3
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
:- module(control, [(\=)/2, (\+)/1, between/3, once/1, repeat/0]).
|
||||
:- module(control, [(\=)/2, (\+)/1, between/3, call_cleanup/2, once/1, repeat/0]).
|
||||
|
||||
:- op(900, fy, \+).
|
||||
:- op(700, xfx, \=).
|
||||
@@ -11,7 +11,7 @@ once(G) :- G, !.
|
||||
X \= X :- !, false.
|
||||
_ \= _.
|
||||
|
||||
% call_cleanup(G, C) :- setup_call_cleanup(true, G, C).
|
||||
call_cleanup(G, C) :- setup_call_cleanup(true, G, C).
|
||||
|
||||
between(Lower, Upper, Lower) :-
|
||||
Lower =< Upper.
|
||||
|
||||
Reference in New Issue
Block a user