mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-20 11:32:35 -08:00
Change of syntax in WITH-BACKEND.
Using (WITH-BACKEND :BYTECODES form :C/C++ form ...) allows us to coalesce both possibilities without the output value of one suppressed form hiding the other one
This commit is contained in:
parent
21073fd698
commit
d400a096eb
4 changed files with 22 additions and 16 deletions
|
|
@ -137,9 +137,11 @@
|
|||
)
|
||||
|
||||
(defun c1with-backend (forms)
|
||||
(destructuring-bind ((&rest conditions) &rest body)
|
||||
forms
|
||||
(c1progn (and (member :c/c++ conditions) body))))
|
||||
(c1progn (loop for tag = (pop forms)
|
||||
for form = (pop forms)
|
||||
while tag
|
||||
when (eq tag :c/c++)
|
||||
collect form)))
|
||||
|
||||
(defun c1progn (forms)
|
||||
(cond ((endp forms) (t1/c1expr 'NIL))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue