object
assertions(Mode)ï
A simple assertions framework. Can be used as a hook object for either suppressing assertions (production mode) or expanding them with file context information (debug mode).
Availability:
logtalk_load(assertions(loader))Author: Paulo Moura
Version: 2:2:2
Date: 2022-07-04
Compilation flags:
static, context_switching_callsRemarks:
(none)
Inherited public predicates:
Public predicatesï
assertion/1ï
Checks that an assertion is true. Uses the structured message printing mechanism for printing the results using a silent message for assertion success and a error message for assertion failure.
Compilation flags:
staticTemplate:
assertion(Goal)Meta-predicate template:
assertion(0)Mode and number of proofs:
assertion(@callable) - oneassertion/2ï
Checks that an assertion is true. Uses the structured message printing mechanism for printing the results using a silent message for assertion success and a error message for assertion failure. The context argument can be used to e.g. pass location data.
Compilation flags:
staticTemplate:
assertion(Context,Goal)Meta-predicate template:
assertion(*,0)Mode and number of proofs:
assertion(@term,@callable) - oneProtected predicatesï
(no local declarations; see entity ancestors if any)
Private predicatesï
(no local declarations; see entity ancestors if any)
Operatorsï
(none)