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:
Juan Jose Garcia Ripoll 2010-04-25 14:33:09 +02:00
parent 21073fd698
commit d400a096eb
4 changed files with 22 additions and 16 deletions

View file

@ -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))