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

  • swipl
    • library
      • error.pl
      • debug.pl -- Print debug messages and test assertions
      • apply.pl -- Apply predicates on a list
      • lists.pl -- List Manipulation
      • broadcast.pl -- Event service
      • shlib.pl
      • option.pl
      • thread_pool.pl -- Resource bounded thread management
      • gensym.pl
      • settings.pl -- Setting management
      • arithmetic.pl
      • main.pl
      • readutil.pl
      • operators.pl -- Manage operators
      • pairs.pl
      • prolog_source.pl
      • record.pl
      • quasi_quotations.pl -- Define Quasi Quotation syntax
      • pure_input.pl -- Pure Input from files and streams
      • solution_sequences.pl
      • ordsets.pl
      • random.pl
      • base64.pl -- Base64 encoding and decoding
      • aggregate.pl
      • yall.pl
      • 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 -- Operations on atoms
      • modules.pl
      • occurs.pl
      • prolog_xref.pl
      • prolog_colour.pl
      • lazy_lists.pl
      • ugraphs.pl
      • url.pl
      • www_browser.pl
      • prolog_pack.pl
      • git.pl
      • utf8.pl -- UTF-8 encoding/decoding on lists of character codes.
      • dialect.pl -- Support multiple Prolog dialects
      • system.pl
      • terms.pl
      • date.pl
      • persistency.pl
      • iostream.pl -- Utilities to deal with streams
      • prolog_stack.pl
      • edinburgh.pl
      • prolog_clause.pl
      • prolog_breakpoints.pl
      • wfs.pl
      • prolog_code.pl
      • sort.pl
      • dicts.pl -- Dict utilities
      • dif.pl
      • varnumbers.pl
      • pio.pl -- Pure I/O
      • base32.pl
      • charsio.pl
      • codesio.pl
      • coinduction.pl -- Co-Logic Programming
      • heaps.pl -- heaps/priority queues
      • rbtrees.pl -- Red black trees
      • statistics.pl
      • when.pl -- Conditional coroutining
      • backcomp.pl -- Backward compatibility
      • hashtable.pl
      • ctypes.pl -- Character code classification
      • optparse.pl
      • make.pl
      • listing.pl
      • ansi_term.pl -- Print decorated text to ANSI consoles
      • prolog_versions.pl -- Demand specific (Prolog) versions
      • 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
      • prolog_debug.pl
      • thread.pl -- High level thread primitives
      • threadutil.pl -- Interactive thread utilities
      • prolog_profile.pl -- Execution profiler
      • prolog_config.pl
      • prolog_jiti.pl -- Just In Time Indexing (JITI) utilities
      • prolog_wrap.pl
      • prolog_autoload.pl
      • prolog_codewalk.pl -- Prolog code walker
      • quintus.pl
      • macros.pl
      • help.pl -- Text based manual
      • shell.pl
      • zip.pl -- Access resource ZIP archives
      • tables.pl
      • strings.pl -- String utilities
      • increval.pl
      • tty.pl
      • exceptions.pl
      • intercept.pl
      • files.pl
      • oset.pl
      • nb_set.pl
      • prolog_coverage.pl
      • readln.pl
      • prolog_history.pl
      • prolog_metainference.pl
      • explain.pl
      • edit.pl
      • writef.pl
      • qsave.pl
      • streams.pl
      • portray_text.pl -- Portray text
 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,_)).