Did you know ... Search Documentation:
Predicate xref_hook/1
Availability::- use_module(library(prolog_xref)).(can be autoloaded)
 xref_hook(?Callable)
Definition of known hooks. Hooks that can be called in any module are unqualified. Other hooks are qualified with the module where they are called.