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

12.4.18 Environment Control from Foreign Code
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Environment Control from Foreign Code
            • PL_action()
            • PL_version()
    • Packages
Availability:C-language interface function
unsigned int PL_version(int key)
Query version information. This function may be called before PL_initialise(). If the key is unknown the function returns 0. See section 2.22 for a more in-depth discussion on binary compatibility. Defined keys are:
PL_VERSION_SYSTEM
SWI-Prolog version as 10,000 × major + 100 × minor + patch.
PL_VERSION_FLI
Incremented if the foreign interface defined in this chapter changes in a way that breaks backward compatibility.
PL_VERSION_REC
Incremented if the binary representation of terms as used by PL_record_external() and fast_write/2 changes.
PL_VERSION_QLF
Incremented if the QLF file format changes.
PL_VERSION_QLF_LOAD
Represents the oldest loadable QLF file format version.
PL_VERSION_VM
A hash that represents the VM instructions and their arguments.
PL_VERSION_BUILT_IN
A hash that represents the names, arities and properties of all built-in predicates defined in C. If this function is called before PL_initialise() it returns 0.
ClioPatria (version V3.1.1-40-g9d9e003)