1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

lua code returning via normal path

* module/language/lua/compile-tree-il.scm (compile): Get more lua code
  returning via the normal path.
This commit is contained in:
Andy Wingo 2010-12-10 19:08:25 +01:00 committed by Ian Price
parent 3043dc0ef7
commit 8c91ae59f9

View file

@ -132,10 +132,10 @@ dropped silently"
((ast-return src exp)
(if tail?
(if (list? exp)
(if (and (list? exp) (not (= (length exp) 1)))
(make-application src (make-primitive-ref src 'values)
(map-compile exp))
(compile exp #t))
(compile (if (list? exp) (car exp) exp) #t))
(make-application
src (make-primitive-ref src 'return/values)
(if (list? exp) (map-compile exp #t) (list (compile exp))))))