Expand description
Prolog initialization logic.
When using swipl-rs to embed prolog, you need to ensure that you initialize SWI-Prolog before you do anything else with SWI-Prolog. The one exception is registering of foreign predicates, which you’re allowed to do at any point.
Functions for both prolog initialization as well as foreign predicate registration are defined here.
Functions
- Activate the main prolog engine, or panic if it has alread been activated, or if SWI-Prolog was not initialized yet.
- Panic if SWI-Prolog has not been initialized.
- Initialize SWI-Prolog.
- Initialize SWI-Prolog and immediately deactivate the main thread engine.
- Initialize SWI-Prolog with a given saved state.
- Initialize SWI-Prolog with a saved state and immediately deactivate the main thread engine.
- Check if SWI-Prolog has been initialized.
- Reactivate the main engine.
- Register a foreign predicate.