protect against mal-formed calls

This commit is contained in:
Vitor Santos Costa 2015-02-14 17:05:48 +00:00
parent 29ffb152e5
commit 2d20db7e6d
1 changed files with 1 additions and 0 deletions

View File

@ -838,6 +838,7 @@ expand_goal(G, G).
'$continue_imported'(ExportingMod, ExportingModI, G0, G0I).
% SWI builtin
'$get_undefined_pred'(G, _ImportingMod, G, user) :-
nonvar(G),
'$pred_exists'(G, user), !.
'$get_undefined_pred'(G, _ImportingMod, G0, ExportingMod) :-
recorded('$dialect',Dialect,_),