make sure goal_expansion is never seen as an undefined goal. It should at least always succeed.
This commit is contained in:
parent
a132707746
commit
d91bab4247
@ -899,6 +899,8 @@ not(G) :- \+ '$execute'(G).
|
|||||||
'$check_callable'(_,_).
|
'$check_callable'(_,_).
|
||||||
|
|
||||||
% Called by the abstract machine, if no clauses exist for a predicate
|
% Called by the abstract machine, if no clauses exist for a predicate
|
||||||
|
'$undefp'([M|expand_goal(G,GEx)]) :- !,
|
||||||
|
G = GEx.
|
||||||
'$undefp'([M|G]) :-
|
'$undefp'([M|G]) :-
|
||||||
% make sure we do not loop on undefined predicates
|
% make sure we do not loop on undefined predicates
|
||||||
% for undefined_predicates.
|
% for undefined_predicates.
|
||||||
|
Reference in New Issue
Block a user