Don't use source locator when it won't work.

svn: r9278
This commit is contained in:
Sam Tobin-Hochstadt 2008-04-12 17:58:56 +00:00
parent 2de5845dbd
commit df6e038f26

View File

@ -29,7 +29,9 @@
;(printf "orig: ~a~n" (syntax-object->datum omodule))
;(printf "exp: ~a~n" (syntax-object->datum emodule))
;(printf "stx (locate): ~a~n" (syntax-object->datum stx))
(look-for-in-orig omodule emodule stx))
(if (and omodule emodule stx)
(look-for-in-orig omodule emodule stx)
stx))
;; produce a type error, using the current syntax
(define (tc-error msg . rest)