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('$if_level',0),
|
||||||
nb_setval('$endif',off),
|
nb_setval('$endif',off),
|
||||||
nb_setval('$consulting_file',[]),
|
nb_setval('$consulting_file',[]),
|
||||||
|
nb_setval('$initialization_goals',off),
|
||||||
nb_setval('$consulting',false),
|
nb_setval('$consulting',false),
|
||||||
nb_setval('$included_file',[]).
|
nb_setval('$included_file',[]).
|
||||||
|
|
||||||
|
@ -302,6 +302,9 @@ use_module(M,F,Is) :-
|
|||||||
fail.
|
fail.
|
||||||
'$initialization'(_).
|
'$initialization'(_).
|
||||||
|
|
||||||
|
'$exec_initialisation_goals' :-
|
||||||
|
nb_setval('$initialization_goals',on),
|
||||||
|
fail.
|
||||||
'$exec_initialisation_goals' :-
|
'$exec_initialisation_goals' :-
|
||||||
recorded('$blocking_code',_,R),
|
recorded('$blocking_code',_,R),
|
||||||
erase(R),
|
erase(R),
|
||||||
@ -331,7 +334,8 @@ use_module(M,F,Is) :-
|
|||||||
'$enter_system_mode',
|
'$enter_system_mode',
|
||||||
fail
|
fail
|
||||||
).
|
).
|
||||||
'$exec_initialisation_goals'.
|
'$exec_initialisation_goals' :-
|
||||||
|
nb_setval('$initialization_goals',off).
|
||||||
|
|
||||||
'$include'(V, _) :- var(V), !,
|
'$include'(V, _) :- var(V), !,
|
||||||
'$do_error'(instantiation_error,include(V)).
|
'$do_error'(instantiation_error,include(V)).
|
||||||
|
@ -244,8 +244,10 @@ yap_flag(generate_debug_info,false) :- !,
|
|||||||
yap_flag(generate_debug_info,X) :-
|
yap_flag(generate_debug_info,X) :-
|
||||||
'$do_error'(domain_error(flag_value,generate_debug_info+X),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',[]), !.
|
nb_getval('$consulting_file',[]), !.
|
||||||
|
'$enable_restore_flag_info'(_) :-
|
||||||
|
nb_getval('$initialization_goals',on), !.
|
||||||
'$enable_restore_flag_info'(Flag) :-
|
'$enable_restore_flag_info'(Flag) :-
|
||||||
'$show_consult_level'(Level1),
|
'$show_consult_level'(Level1),
|
||||||
yap_flag(Flag, Info),
|
yap_flag(Flag, Info),
|
||||||
|
Reference in New Issue
Block a user