SWI-Prolog/swipl-devel — pull request #13 by edisonm (2014-08-28 15:05:45+00:00)
Title: FIXED: Moved process of directives in '$compile_term'/3 into '$store_cla...

...use'/3,

and created the predicate '$record_clause_or_directive'/3, to allow
directives appearing after the '$source_location'/2 indicator. This
avoid problems when an early expansion adds such indicator and further
expansions add directives.