mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-20 14:19:18 +02:00
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.
18 lines
466 B
Scheme
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"))
|