mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added debugging
This commit is contained in:
parent
3e5dae998b
commit
5a0d619e38
1 changed files with 4 additions and 0 deletions
|
@ -600,10 +600,14 @@
|
|||
;; Keep looking up a symbol until the original non-renamed symbol is found
|
||||
(define (find-original-sym sym)
|
||||
(let ((val (env:lookup sym use-env #f)))
|
||||
;(Cyc-write `(find-original-sym ,sym ,val) (current-output-port))
|
||||
;(Cyc-display "\n" (current-output-port))
|
||||
(if val
|
||||
(find-original-sym val) ;; Keep going
|
||||
sym))) ;; There was no rename, so sym is not renamed
|
||||
(lambda (a b)
|
||||
;(Cyc-write `(Cyc-er-compare? ,a ,b) (current-output-port))
|
||||
;(Cyc-display "\n" (current-output-port))
|
||||
(let* ((asym (find-original-sym a))
|
||||
(bsym (find-original-sym b))
|
||||
(result (eq? asym bsym)))
|
||||
|
|
Loading…
Add table
Reference in a new issue