cmp: Allow for compile time evaluation of inlined forms
The following statement:
(eval-when (:compile-toplevel :load-toplevel :execute)
(print "test"))
resulted in an error, since the compiler would expand the print
statement in a FFI:C-INLINE form, which can't be evaluated at
compile time.
This commit is contained in:
parent
825c8d2b2e
commit
b00e62f9d3
1 changed files with 3 additions and 2 deletions
|
|
@ -308,8 +308,9 @@
|
|||
(cond ((not *compile-toplevel*)
|
||||
(c1progn (and execute-flag (rest args))))
|
||||
(load-flag
|
||||
(let ((*compile-time-too* compile-flag))
|
||||
(c1progn (rest args))))
|
||||
(if compile-flag
|
||||
(cmp-eval (cons 'PROGN (rest args))))
|
||||
(c1progn (rest args)))
|
||||
(compile-flag
|
||||
(cmp-eval (cons 'PROGN (rest args)))
|
||||
(c1progn 'NIL))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue