fixed bugs in the racket/trace docs (added docs for two exported parameters and fixed a contract)

This commit is contained in:
Robby Findler 2010-11-07 14:42:09 -06:00
parent a63bbf82ab
commit c192a1e1f8

View File

@ -81,10 +81,11 @@ trace information during the call, as described above in the docs for
@defparam[current-trace-print-args trace-print-args @defparam[current-trace-print-args trace-print-args
(-> symbol? (-> symbol?
(listof keyword?)
list? list?
(listof keyword?)
list? list?
number?)]{ number?
void?)]{
The value of this parameter is invoked to print out the arguments of a The value of this parameter is invoked to print out the arguments of a
traced call. It receives the name of the function, the function's traced call. It receives the name of the function, the function's
@ -93,7 +94,7 @@ number indicating the depth of the call.
} }
@defparam[current-trace-results trace-print-results @defparam[current-trace-print-results trace-print-results
(-> symbol? (-> symbol?
list? list?
number? number?
@ -104,3 +105,20 @@ traced call. It receives the name of the function, the function's
results, and a number indicating the depth of the call. results, and a number indicating the depth of the call.
} }
@defparam[current-prefix-out prefix string?]{
This string is used by the default value of @racket[current-trace-print-args]
indicating that the current line is showing the a call to a
traced function.
It defaults to @racket[">"].
}
@defparam[current-prefix-out prefix string?]{
This string is used by the default value of @racket[current-trace-print-results]
indicating that the current line is showing the result
of a traced call.
It defaults to @racket["<"].
}