| Did you know ... | Search Documentation: |
| Predicate prolog_tool/4 |
process_create(prolog(Tool), ...). Tool is currently one of:
swipl-win app.swipl-win app, also when called from the
commandline version.prolog:prolog_tool/4 is defined as multifile and dynamic and can be used for special cases. This hook is notably intended to provide a portable way of calling Prolog when Prolog is embedded.
For example, when using rolog, we can run Prolog using
R -s -e 'rswipl::swipl()', '—args' <Prolog Argv>
We can make process_create(prolog(swipl), ...) work using
:- multifile prolog:prolog_tool/4.
prolog:prolog_tool(swipl, path('R'), Argv,
[ '-s', '-e', 'rswipl::swipl()', '--args'
| Argv
]).