/usr/local/lib/swipl/library/check.pl
All Application Manual Name SummaryHelp

  • swipl
    • library
      • error.pl
      • debug.pl
      • apply.pl
      • lists.pl
      • broadcast.pl
      • shlib.pl
      • option.pl
      • thread_pool.pl
      • gensym.pl
      • settings.pl
      • arithmetic.pl -- Extensible arithmetic
      • main.pl -- Provide entry point for scripts
      • readutil.pl
      • operators.pl -- Manage operators
      • pairs.pl
      • prolog_source.pl
      • record.pl
      • quasi_quotations.pl
      • pure_input.pl
      • solution_sequences.pl
      • ordsets.pl
      • random.pl
      • base64.pl
      • aggregate.pl -- Aggregation operators on backtrackable predicates
      • yall.pl -- Lambda expressions
      • sandbox.pl
      • apply_macros.pl -- Goal expansion rules to avoid meta-calling
      • assoc.pl
      • prolog_format.pl
      • predicate_options.pl
      • csv.pl -- Process CSV (Comma-Separated Values) data
      • pprint.pl
      • atom.pl
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl -- Lazy list handling
      • ugraphs.pl
      • url.pl -- Analysing and constructing URL
      • www_browser.pl
      • prolog_pack.pl
      • git.pl -- Run GIT commands
      • utf8.pl
      • dialect.pl
      • system.pl
      • terms.pl -- Term manipulation
      • date.pl
      • persistency.pl
      • iostream.pl -- Utilities to deal with streams
      • prolog_stack.pl
      • edinburgh.pl -- Some traditional Edinburgh predicates
      • prolog_clause.pl
      • prolog_breakpoints.pl -- Manage Prolog break-points
      • wfs.pl -- Well Founded Semantics interface
      • prolog_code.pl
      • sort.pl
      • dicts.pl -- Dict utilities
      • dif.pl
      • varnumbers.pl -- Utilities for numbered terms
      • pio.pl
      • base32.pl
      • charsio.pl
      • codesio.pl
      • coinduction.pl
      • heaps.pl
      • rbtrees.pl
      • statistics.pl
      • when.pl
      • backcomp.pl
      • ctypes.pl -- Character code classification
      • intercept.pl
      • prolog_metainference.pl -- Infer meta-predicate properties
      • thread.pl -- High level thread primitives
      • prolog_codewalk.pl
      • ansi_term.pl
      • prolog_debug.pl
      • listing.pl
      • quintus.pl
      • prolog_jiti.pl
      • shell.pl
      • prolog_trace.pl
      • prolog_wrap.pl
      • strings.pl
      • qsave.pl
      • zip.pl -- Access resource ZIP archives
      • exceptions.pl
      • increval.pl
      • tables.pl
      • help.pl -- Text based manual
      • optparse.pl
      • threadutil.pl -- Interactive thread utilities
      • make.pl -- Reload modified source files
      • edit.pl
      • readln.pl
      • nb_set.pl
      • fastrw.pl
      • tty.pl
      • writef.pl
      • check.pl -- Consistency checking
        • check/0
        • list_undefined/0
        • list_undefined/1
        • list_autoload/0
        • list_redefined/0
        • list_cross_module_calls/0
        • list_void_declarations/0
        • list_trivial_fails/0
        • list_trivial_fails/1
        • trivial_fail_goal/1
        • list_strings/0
        • list_strings/1
        • list_rationals/0
        • list_rationals/1
        • list_format_errors/0
        • list_format_errors/1
        • string_predicate/1
        • valid_string_goal/1
        • checker/2
      • oset.pl
      • prolog_profile.pl
      • prolog_history.pl
      • prolog_autoload.pl
 checker(:Goal, +Message:text) is nondet[multifile, library(check)]
Register code validation routines. Each clause defines a Goal which performs a consistency check executed by check/0. Message is a short description of the check. For example, assuming the 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,_)).