make sure we don't redo things.
This commit is contained in:
parent
af69088bc3
commit
9d07b51937
@ -102,6 +102,7 @@ true :- true.
|
||||
nb_setval('$if_level',0),
|
||||
nb_setval('$endif',off),
|
||||
nb_setval('$consulting_file',[]),
|
||||
nb_setval('$initialization_goals',off),
|
||||
nb_setval('$consulting',false),
|
||||
nb_setval('$included_file',[]).
|
||||
|
||||
|
@ -302,6 +302,9 @@ use_module(M,F,Is) :-
|
||||
fail.
|
||||
'$initialization'(_).
|
||||
|
||||
'$exec_initialisation_goals' :-
|
||||
nb_setval('$initialization_goals',on),
|
||||
fail.
|
||||
'$exec_initialisation_goals' :-
|
||||
recorded('$blocking_code',_,R),
|
||||
erase(R),
|
||||
@ -331,7 +334,8 @@ use_module(M,F,Is) :-
|
||||
'$enter_system_mode',
|
||||
fail
|
||||
).
|
||||
'$exec_initialisation_goals'.
|
||||
'$exec_initialisation_goals' :-
|
||||
nb_setval('$initialization_goals',off).
|
||||
|
||||
'$include'(V, _) :- var(V), !,
|
||||
'$do_error'(instantiation_error,include(V)).
|
||||
|
@ -244,8 +244,10 @@ yap_flag(generate_debug_info,false) :- !,
|
||||
yap_flag(generate_debug_info,X) :-
|
||||
'$do_error'(domain_error(flag_value,generate_debug_info+X),yap_flag(generate_debug_info,X)).
|
||||
|
||||
'$enable_restore_flag_info'(_Flag) :-
|
||||
'$enable_restore_flag_info'(_) :-
|
||||
nb_getval('$consulting_file',[]), !.
|
||||
'$enable_restore_flag_info'(_) :-
|
||||
nb_getval('$initialization_goals',on), !.
|
||||
'$enable_restore_flag_info'(Flag) :-
|
||||
'$show_consult_level'(Level1),
|
||||
yap_flag(Flag, Info),
|
||||
|
Reference in New Issue
Block a user