shithub: pprolog

Download patch

ref: 2bda2a9d61ff3c713beff623aceea143d0f814c6
parent: d7a4ae651e8334955ad39c4adf02e36b6c99ec2f
author: Peter Mikkelsen <peter@pmikkelsen.com>
date: Thu Jul 22 14:52:14 EDT 2021

Understand set_prolog_flag directive

--- a/loader.pl
+++ b/loader.pl
@@ -111,6 +111,8 @@
 	close(S).
 handle_directive(ensure_loaded(F), Module, Module) :-
 	ensure_load(F).
+handle_directive(set_prolog_flag(Flag, Value), Module, Module) :-
+	Module:set_prolog_flag(Flag, Value).
 handle_directive(module(NewModule, Exports), Module, NewModule) :-
 	is_atom(NewModule),
 	'$new_empty_module'(NewModule).