mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 16:57:35 +02:00
Additional safety check for empty env
This commit is contained in:
parent
338c195e81
commit
183b3c5eb2
1 changed files with 3 additions and 2 deletions
|
@ -747,7 +747,8 @@
|
||||||
(define (macro:macro? exp defined-macros) (assoc (car exp) defined-macros))
|
(define (macro:macro? exp defined-macros) (assoc (car exp) defined-macros))
|
||||||
|
|
||||||
(define (macro:get-local-renames macro current-rename-lis)
|
(define (macro:get-local-renames macro current-rename-lis)
|
||||||
(if (eq? 3 (length macro))
|
(if (and (eq? 3 (length macro))
|
||||||
|
(not (null? (caddr macro))))
|
||||||
(caddr macro)
|
(caddr macro)
|
||||||
current-rename-lis))
|
current-rename-lis))
|
||||||
|
|
||||||
|
@ -759,7 +760,7 @@
|
||||||
(result #f))
|
(result #f))
|
||||||
;(newline)
|
;(newline)
|
||||||
;(display "/* ")
|
;(display "/* ")
|
||||||
;(display (list 'macro:expand exp macro compiled-macro?))
|
;(display (list 'macro:expand exp macro compiled-macro? local-renamed))
|
||||||
;(display "*/ ")
|
;(display "*/ ")
|
||||||
|
|
||||||
;; Invoke ER macro
|
;; Invoke ER macro
|
||||||
|
|
Loading…
Add table
Reference in a new issue