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:
parent
3043dc0ef7
commit
8c91ae59f9
1 changed files with 2 additions and 2 deletions
|
@ -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))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue