Merge pull request #1328 from pmoura/fix_bounded_and_max_arity_flags
Fix querying the values of the bounded and max_arity flags
This commit is contained in:
@@ -119,9 +119,9 @@ Module : Predicate :-
|
|||||||
|
|
||||||
% flags.
|
% flags.
|
||||||
|
|
||||||
current_prolog_flag(Flag, Value) :- Flag == max_arity, !, Value == 1023.
|
current_prolog_flag(Flag, Value) :- Flag == max_arity, !, Value = 1023.
|
||||||
current_prolog_flag(max_arity, 1023).
|
current_prolog_flag(max_arity, 1023).
|
||||||
current_prolog_flag(Flag, Value) :- Flag == bounded, !, Value == false.
|
current_prolog_flag(Flag, Value) :- Flag == bounded, !, Value = false.
|
||||||
current_prolog_flag(bounded, false).
|
current_prolog_flag(bounded, false).
|
||||||
current_prolog_flag(Flag, Value) :- Flag == integer_rounding_function, !, Value == toward_zero.
|
current_prolog_flag(Flag, Value) :- Flag == integer_rounding_function, !, Value == toward_zero.
|
||||||
current_prolog_flag(integer_rounding_function, toward_zero).
|
current_prolog_flag(integer_rounding_function, toward_zero).
|
||||||
|
|||||||
Reference in New Issue
Block a user