prevent failure in listing X
This commit is contained in:
parent
57ac65c83b
commit
095cd68cac
@ -35,7 +35,7 @@ listing(V) :-
|
||||
|
||||
'$listing'(V,Mod,Stream) :- var(V), !,
|
||||
'$current_predicate_no_modules'(Mod,_,Pred),
|
||||
'$list_clauses'(Stream,Mod,Pred).
|
||||
( '$list_clauses'(Stream,Mod,Pred) ; true ).
|
||||
'$listing'(M:V,_,Stream) :- !,
|
||||
'$listing'(V,M,Stream).
|
||||
'$listing'([],_,_) :- !.
|
||||
|
Reference in New Issue
Block a user