remove_advice/3 development

Synopsis

remove_advice(+Goal,+*Port,+*Action)

remove the association of an action with entry to a port of a procedure. remove_advice/3 will only succeed when Port is var or one of {call, exit, done, redo, fail}, and Action is var or callable.

Arguments


Goal callable [MOD]
a term to be unified against a calling goal of existing advice.
Port term
any term.
Action term [MOD]
any term.

Description

remove_advice/3 removes the association of an advice action with a goal and port, undoing the effect of add_advice/3.

This predicate is not supported in runtime systems.

Exceptions


instantiation_error
if an argument is not sufficiently instantiated.
type_error
if Goal or Action is not a callable, or a module prefix is not an atom, or Port is not an atom.
domain_error
if Port is not a valid port.
permission_error
if a specified procedure is built-in.

See Also

add_advice/3, current_advice/3, check_advice/[0,1], nocheck_advice/[0,1]