12.4.1.1 Non-deterministic Foreign Predicates
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Argument Passing and Control
            • Non-deterministic Foreign Predicates
              • PL_retry()
              • PL_retry_address()
              • PL_foreign_control()
              • PL_foreign_context()
              • PL_foreign_context_address()
              • PL_foreign_context_predicate()
    • Packages
Availability:C-language interface function
predicate_t PL_foreign_context_predicate(control_t)

Fetch the Prolog predicate that is executing this function. Note that if the predicate is imported, the returned predicate refers to the final definition rather than the imported predicate; i.e., the module reported by PL_predicate_info() is the module in which the predicate is defined rather than the module where it was called. See also PL_predicate_info().