mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
Added argument checking to trace.
This commit is contained in:
parent
9a942103f0
commit
cb3a178451
1 changed files with 2 additions and 0 deletions
|
@ -124,6 +124,8 @@
|
|||
(nameify traced-procedures)
|
||||
(begin
|
||||
(for-each (lambda (proc)
|
||||
(if (not (procedure? proc))
|
||||
(error "trace: Wrong type argument:" proc))
|
||||
(set-procedure-property! proc 'trace #t)
|
||||
(if (not (memq proc traced-procedures))
|
||||
(set! traced-procedures
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue