Trace keyword
:entrycond form
t. This allows you to turn off printing of function entry information by supplying a form ofnil, as in the example below. Trace keyword
:exitcond form
:entrycond, information is printed if and only if form evaluates tot. This allows you to turn off printing of function exit information by supplying a form ofnil. An example of using:exitcond and:entrycond is shown below:
fac function, set the values of:entrycond and:exitcond as follows. :entrycond => (evenp (car *traced-arglist*)) :exitcond => (oddp (car *traced-arglist*))
Information is only printed on entry tofac if the argument passed tofac is even. Conversely, information is only printed on exit fromfac if the argument passed tofac is odd.
CL-USER 12 > (fac 10)
The tracing information printed is as follows:
0 FAC > (10)
2 FAC > (8)
4 FAC > (6)
6 FAC > (4)
8 FAC > (2)
9 FAC < (1)
7 FAC < (6)
5 FAC < (120)
3 FAC < (5040)
1 FAC < (362880)