$notrace should call $execute and disable interrupts below.
This commit is contained in:
parent
d7135f06e9
commit
3736ba5793
24
pl/boot.yap
24
pl/boot.yap
@ -1190,8 +1190,28 @@ throw(Ball) :-
|
||||
%
|
||||
% just leave this around to show the debugger.
|
||||
%
|
||||
'$notrace'(M:G) :-
|
||||
'$execute_nonstop'(G, M).
|
||||
'$notrace'(G) :-
|
||||
yap_hacks:disable_interrupts,
|
||||
(
|
||||
yap_hacks:current_choice_point(CP0),
|
||||
'$execute'(G),
|
||||
yap_hacks:current_choice_point(CP1),
|
||||
( CP0 == CP1 ->
|
||||
!,
|
||||
yap_hacks:enable_interrupts
|
||||
;
|
||||
(
|
||||
yap_hacks:enable_interrupts
|
||||
;
|
||||
yap_hacks:disable_interrupts,
|
||||
fail
|
||||
)
|
||||
)
|
||||
;
|
||||
yap_hacks:enable_interrupts,
|
||||
fail
|
||||
).
|
||||
|
||||
|
||||
'$oncenotrace'(M:G) :-
|
||||
'$execute_nonstop'(G, M), !.
|
||||
|
Reference in New Issue
Block a user