#include <quintus/quintus.h> int QP_action(action) int action;
Called to request certain actions of Prolog.
action is one of:
This function allows the user to make Prolog abort, exit, suspend execution, turn on debugging, or prompt for the desired action.
QP_action() from an interrupt handler must be viewed as
requests. They are requests that will definitely be honored, but
not always at the time of the call to
QP_action(). If Prolog
is in a critical region the action might be delayed to when
it has exitted the critical region.
For systems that do not have a toplevel, the actions marked with an
asterisk (*) will have no effect other than to make
For a full discussion of
QP_action() and examples of its use, see ref-iex-iha