QP_action()
#include <quintus/quintus.h> int QP_action(action) int action;
Called to request certain actions of Prolog.
action
is one of:
QP_ABORT
QP_REALLY_ABORT
QP_STOP
QP_IGNORE
QP_EXIT
QP_MENU
QP_TRACE
QP_DEBUG
This function allows the user to make Prolog abort, exit, suspend execution, turn on debugging, or prompt for the desired action.
Calls to 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.
QP_ERROR
QP_SUCCESS
For systems that do not have a toplevel, the actions marked with an
asterisk (*) will have no effect other than to make QP_action()
return QP_ERROR
.
For a full discussion of QP_action()
and examples of its use, see ref-iex-iha