prolog_flag/4

prolog_flag(? Flag,- OldValue,+ NewValue)*

Obtain the value for a YAP Prolog flag and then set it to a new value. Equivalent to first calling current_prolog_flag//22 with the second argument OldValue unbound and then calling set_prolog_flag//22 with the third argument NewValue.