allow term_expansion from system

This commit is contained in:
Vítor Santos Costa 2010-06-23 11:45:18 +01:00
parent 15546096fe
commit e21526ffc8

View File

@ -1164,6 +1164,8 @@ access_file(F,Mode) :-
expand_term(Term,Expanded) :- expand_term(Term,Expanded) :-
( '$current_module'(Mod), \+ '$undefined'(term_expansion(_,_), Mod), ( '$current_module'(Mod), \+ '$undefined'(term_expansion(_,_), Mod),
'$notrace'(Mod:term_expansion(Term,Expanded)) '$notrace'(Mod:term_expansion(Term,Expanded))
; \+ '$undefined'(term_expansion(_,_), system),
'$notrace'(system:term_expansion(Term,Expanded))
; \+ '$undefined'(term_expansion(_,_), user), ; \+ '$undefined'(term_expansion(_,_), user),
'$notrace'(user:term_expansion(Term,Expanded)) '$notrace'(user:term_expansion(Term,Expanded))
; ;