Skip to content

Commit

Permalink
add predicate indicator sequences to loader:add_predicate_declaration (
Browse files Browse the repository at this point in the history
  • Loading branch information
mthom committed Sep 26, 2023
1 parent 280ff8b commit e8334f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/loader.pl
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,9 @@
call(Handler, Module, Name, Arity).
add_predicate_declaration(Handler, [PI|PIs]) :-
maplist(loader:add_predicate_declaration(Handler), [PI|PIs]).
add_predicate_declaration(Handler, (PI, PIs)) :-
add_predicate_declaration(Handler, PI),
add_predicate_declaration(Handler, PIs).

add_dynamic_predicate(Evacuable, Module, Name, Arity) :-
'$add_dynamic_predicate'(Module, Name, Arity, Evacuable).
Expand Down

0 comments on commit e8334f9

Please sign in to comment.