
check.pl -- Consistency checkingThis library provides some consistency checks for the loaded Prolog program. The predicate make/0 runs list_undefined/0 to find undefined predicates in `user' modules.
check is det
list_undefined is det
list_undefined(+Options) is det[user]. For example, to include the
libraries into the examination, use [user,library].
list_autoload is det
list_redefineduser as
well as in a normal module; that is, predicates for which the
local definition overrules the global default definition.
list_void_declarations is det
list_trivial_fails is det
list_trivial_fails(+Options) is det[user]. For example, to include the
libraries into the examination, use [user,library].
trivial_fail_goal(:Goal)[multifile]
list_strings is det
list_strings(+Options) is detdouble_quotes from codes to string, creating packed string
objects. Warnings may be suppressed using the following
multifile hooks:
string_predicate(:PredicateIndicator)[multifile]
valid_string_goal(+Goal) is semidet[multifile]format("Hello world~n") is considered proper use of
string constants.
checker(:Goal, +Message:text)[multifile]my_checks module defines a predicate list_format_mistakes/0:
:- multifile check:checker/2.
check:checker(my_checks:list_format_mistakes,
"errors with format/2 arguments").
The predicate is dynamic, so you can disable checks with retract/1. For example, to stop reporting redefined predicates:
retract(check:checker(list_redefined,_)).
list_undefined is det
list_undefined(+Options) is det[user]. For example, to include the
libraries into the examination, use [user,library].
list_trivial_fails is det
list_trivial_fails(+Options) is det[user]. For example, to include the
libraries into the examination, use [user,library].
list_strings is det
list_strings(+Options) is detdouble_quotes from codes to string, creating packed string
objects. Warnings may be suppressed using the following
multifile hooks: