mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-05 03:30:24 +02:00
only evaluate top-level macro definitions
(Best-ability ChangeLog annotation added by Christine Lemmer-Webber.) * module/language/elisp/compile-tree-il.scm (defmacro): Check to see whether toplevel? is true before compiling a macro.
This commit is contained in:
parent
05ea13e910
commit
31761a6221
1 changed files with 4 additions and 3 deletions
|
@ -786,9 +786,10 @@
|
|||
args
|
||||
body))))
|
||||
(make-const loc name))))
|
||||
(with-native-target
|
||||
(lambda ()
|
||||
(compile tree-il #:from 'tree-il #:to 'value)))
|
||||
(when (fluid-ref toplevel?)
|
||||
(with-native-target
|
||||
(lambda ()
|
||||
(compile tree-il #:from 'tree-il #:to 'value))))
|
||||
tree-il)))
|
||||
(else (report-error loc "bad defmacro" args))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue