QP_toplevel()
#include <quintus/quintus.h> int QP_toplevel()
Invokes Prolog's default top level read-prove loop.
For runtime systems, QP_toplevel()
immediately transfers control to the
definition of the Prolog predicate runtime_entry/1
.
QP_toplevel()
takes no arguments. QP_query()
and related
predicates should be used for calling specific Prolog predicates.
One of the effects of calling this function is that the default signal handling for Prolog is enabled. Upon return, the old signal handlers are restored.
The built-in predicate break/0
calls this function. Nested calls
to this function are equivalent to calling the Prolog predicate break/0
.
This function returns when an end-of-file character is read.
QP_SUCCESS
QP_FAILURE
QP_ERROR
QP_initialize()
, break/0
.