12.3.1 Type term_t: a reference to a Prolog term
All Application Manual Name SummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • Interface Data Types
          • Type term_t: a reference to a Prolog term
            • PL_new_term_ref()
            • PL_new_term_refs()
            • PL_copy_term_ref()
            • PL_free_term_ref()
            • PL_reset_term_refs()
            • Interaction with the garbage collector and stack-shifter
    • Packages
Availability:C-language interface function
void PL_free_term_ref(term_t t)
Release a specific term reference. Normally all term references in a scope are discarded together or all term references created after a specific one are reclaimed using PL_reset_term_refs(). This function shrinks the current foreign frame if t is the last one in the frame. Else it marks t for reuse by PL_new_term_ref().