• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

B.10 Hooks for loading files
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Hackers corner
        • Hooks for loading files
          • prolog_load_file/2
          • open_source_hook/3
          • comment_hook/3
    • Packages
prolog:open_source_hook(+Path, -Stream, +Options)
This hooks is called by the compiler to overrule the default open/3 call open(Path, read, Stream). Options provide the options as provided to load_files/2. If the hook succeeds compilation continues by loading from the returned (input) stream. This hook is particularly suited to support running the code to a preprocessor. See also prolog_load_file/2.
ClioPatria (version V3.1.1-51-ga0b30a5)