add missing variable checks in various places
This commit is contained in:
@@ -261,7 +261,8 @@ call_or_cut(M:G, B) :-
|
|||||||
; call(M:G)
|
; call(M:G)
|
||||||
).
|
).
|
||||||
call_or_cut(G, B) :-
|
call_or_cut(G, B) :-
|
||||||
( '$call_with_default_policy'(control_functor(G)) ->
|
( nonvar(G),
|
||||||
|
'$call_with_default_policy'(control_functor(G)) ->
|
||||||
'$call_with_default_policy'(call_or_cut_interp(G, B))
|
'$call_with_default_policy'(call_or_cut_interp(G, B))
|
||||||
; call(G)
|
; call(G)
|
||||||
).
|
).
|
||||||
|
|||||||
@@ -440,7 +440,8 @@ predicate_property(Callable, Property) :-
|
|||||||
; functor(Callable, (:), 2),
|
; functor(Callable, (:), 2),
|
||||||
arg(1, Callable, Module),
|
arg(1, Callable, Module),
|
||||||
arg(2, Callable, Callable0),
|
arg(2, Callable, Callable0),
|
||||||
atom(Module) ->
|
atom(Module),
|
||||||
|
nonvar(Callable0) ->
|
||||||
functor(Callable0, Name, Arity),
|
functor(Callable0, Name, Arity),
|
||||||
( atom(Name),
|
( atom(Name),
|
||||||
Name \== [] ->
|
Name \== [] ->
|
||||||
|
|||||||
Reference in New Issue
Block a user