☰

Preprocessing Flags Management

Documentation on exports

Usage:push_pp_flag(Flag,Value)

Sets Value for preprocessor flag Flag, storing the current value to restore it with pop_pp_flag/1.

  • The following properties should hold at call time:
    (pp_flag/1)Flag is a valid preprocessor flag.
    (valid_flag_value/2)Value is a valid value for preprocessor flag Flag.

PREDICATEpop_pp_flag/1

Usage:pop_pp_flag(Flag)

Restores the value of the preprocessor flag Flag previous to the last non-canceled push_pp_flag/2 on it.

  • The following properties should hold at call time:
    (pp_flag/1)Flag is a valid preprocessor flag.

Usage:current_pp_flag(Name,Value)

Preprocess flag Name has the value Value.

  • The following properties should hold at call time:
    (pp_flag/1)Name is a valid preprocessor flag.
  • The following properties should hold upon exit:
    (valid_flag_value/2)Value is a valid value for preprocessor flag Name.

Usage:current_pp_flags(Name,Value)

Current preprocess flags. These facts can be dynamically updated using set_pp_flag/2. Initial facts are flag values by default.

  • Call and exit should be compatible with:
    (pp_flag/1)Name is a valid preprocessor flag.
    (flag_value/1)Value is a value for a flag.
The predicate is of type data.

PREDICATEset_pp_flag/2

Usage:set_pp_flag(Name,Value)

Sets Value for preprocessor flag Name.

  • The following properties should hold at call time:
    (pp_flag/1)Name is a valid preprocessor flag.
    (valid_flag_value/2)Value is a valid value for preprocessor flag Name.

PREDICATEpp_flag/2

Usage:pp_flag(Name,Help)

Name is a valid preprocess flag.Help is a description of what Name does.

REGTYPEpp_flag/1
The list of valid flags, their possible values, and their defaults is in Preprocessing Flags.

Usage:pp_flag(Flag)

Flag is a valid preprocessor flag.

Usage:flag_value(V)

V is a value for a flag.

PREDICATEdump_flags/1

Usage:dump_flags(Name)

Name represents the list of flags to be dumped. To associate a name (key) with a list, use dump_flags_list.

  • The following properties should hold at call time:
    (atm/1)Name is an atom.

Usage:valid_flag_value(Name,Value)

Value is a valid value for preprocessor flag Name.

  • The following properties should hold at call time:
    (pp_flag/1)Name is a valid preprocessor flag.
    (flag_value/1)Value is a value for a flag.

Usage:valid_flag_values(Name,Value_Checker)

Value_Checker is a goal that checks that a value given as first argument of this term is a valid value for Name.

  • Call and exit should be compatible with:
    (pp_flag/1)Name is a valid preprocessor flag.
    (cgoal/1)Value_Checker is a term which represents a goal, i.e., an atom or a structure.

PREDICATEdump_flags/1

Usage:dump_flags(Name)

Name represents the list of flags to be dumped. To associate a name (key) with a list, use dump_flags_list.

  • The following properties should hold at call time:
    (atm/1)Name is an atom.

PREDICATEsave_config/1

Usage:save_config(Name)

Save the current flags configuration under the Name key.

  • The following properties should hold at call time:
    (atm/1)Name is an atom.

Usage:restore_config(Name)

Restores the set of flags saved previously under the name of Name.

  • The following properties should hold at call time:
    (atm/1)Name is an atom.

Usage:remove_config(Name)

Remove the configuration stored with the Name key.

  • The following properties should hold at call time:
    (atm/1)Name is an atom.

PREDICATEshow_config/1

Usage:show_config(C)

Show specific configuration values pointed by C key.

  • The following properties should hold at call time:
    (atm/1)C is an atom.

Usage:

Show all stored configs.

PREDICATEsublist2/2
No further documentation available for this predicate.

No further documentation available for this predicate.

Documentation on multifiles

Usage 1:persistent_dir(Key,Dir)

  • The following properties hold upon exit:
    (atm/1)Key is an atom.
    (atm/1)Dir is an atom.

Usage 2:persistent_dir(Key,Dir)

  • The following properties should hold at call time:
    (atm/1)Key is an atom.
    (var/1)Dir is a free variable.

Usage 3:persistent_dir(Key,Dir)

  • The following properties should hold at call time:
    (atm/1)Key is an atom.
    (atm/1)Dir is an atom.
The predicate is multifile.
The predicate is of type data.

No further documentation available for this predicate. The predicate is multifile.
The predicate is of type data.

No further documentation available for this predicate. The predicate is multifile.