Next: cpg-ref-SP_fclose, Previous: cpg-ref-SP_expand_file_name, Up: cpg-bif [Contents][Index]
SP_fail()
#include <sicstus/sicstus.h> void SP_fail(SP_term_ref term);
Fails in the scope of Prolog calling C.
The SP_term_ref whose value will be the exception term.
This function is normally used in the context of a call from Prolog to C, and will cause Prolog to backtrack on return from the call.
Please note: this should only be called right before returning to Prolog.