fix system_predicate/1 and $system_predicate/1.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@168 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
4688551043
commit
8cc0f4e803
10
pl/utils.yap
10
pl/utils.yap
@ -363,14 +363,16 @@ current_predicate(M:F) :- % module specified
|
||||
current_predicate(F) :- % only for the predicate
|
||||
'$current_predicate3'(F).
|
||||
|
||||
system_predicate(P) :-
|
||||
'$mod_switch'(prolog,'$current_predicate_no_modules'(A,T)),
|
||||
\+ '$hidden'(A).
|
||||
|
||||
system_predicate(A,P) :-
|
||||
'$mod_switch'(prolog,'$current_predicate_no_modules'(A,T)),
|
||||
\+ '$hidden'(A).
|
||||
|
||||
'$system_predicate'(Pred) :-
|
||||
'$flags'(Pred,Flags,_),
|
||||
Flags /\ 8'40000 =\= 0.
|
||||
|
||||
system_predicate(P) :- '$system_predicate'(P).
|
||||
|
||||
'$current_predicate_no_modules'(A,T) :-
|
||||
'$current_predicate'(A,Arity),
|
||||
functor(T,A,Arity),
|
||||
|
Reference in New Issue
Block a user