fix bad call to $execute in $spy

This commit is contained in:
Vítor Santos de Costa 2008-10-24 14:26:44 +01:00
parent 0028072865
commit 1b399e3433

View File

@ -280,10 +280,10 @@ debugging :-
% $spy may be called from user code, so be careful.
'$spy'([Mod|G]) :-
'$debug_on'(F), F = false, !,
'$execute'(G,Mod).
'$execute_nonstop'(G,Mod).
'$spy'([Mod|G]) :-
nb_getval('$system_mode',on), !,
'$execute'(G,Mod).
'$execute_nonstop'(G,Mod).
'$spy'([Mod|G]) :-
CP is '$last_choice_pt',
'$do_spy'(G, Mod, CP, no).