chibi-scheme/lib/chibi/trace.sld
Alex Shinn 8b5eb68238 File descriptors maintain a reference count of ports open on them
They can be close()d explicitly with close-file-descriptor, and
will close() on gc, but only explicitly closing the last port on
them will close the fileno.  Notably needed for network sockets
where we open separate input and output ports on the same socket.
2014-02-20 22:32:50 +09:00

18 lines
466 B
Scheme

;;> \subsubsubsection{(trace proc)}
;;> Write a trace of all calls to the procedure \var{proc} to
;;> \scheme{(current-error-port)}.
;;> \subsubsubsection{(untrace proc)}
;;> Remove any active traces on the procedure \var{proc}.
;;> \subsubsubsection{(untrace-all)}
;;> Remove all active procedure traces.
(define-library (chibi trace)
(export trace untrace untrace-all)
(import (chibi) (chibi ast) (srfi 38) (srfi 39) (srfi 69))
(include "trace.scm"))