mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-16 09:17:35 +02:00
Bugfix, do not add & for "fast" functions
This commit is contained in:
parent
cf735c7917
commit
5d089b83eb
1 changed files with 6 additions and 1 deletions
|
@ -552,7 +552,12 @@
|
||||||
(lambda (type)
|
(lambda (type)
|
||||||
(let ((cv-name (mangle (gensym 'c))))
|
(let ((cv-name (mangle (gensym 'c))))
|
||||||
(c-code/vars
|
(c-code/vars
|
||||||
(string-append (if (prim:cont? p) "" "&") cv-name)
|
(string-append
|
||||||
|
(if (or (prim:cont? p)
|
||||||
|
(prim/c-var-pointer p)) ;; Assume returns object
|
||||||
|
""
|
||||||
|
"&")
|
||||||
|
cv-name)
|
||||||
(list
|
(list
|
||||||
(string-append
|
(string-append
|
||||||
;; Define closure if necessary (apply only)
|
;; Define closure if necessary (apply only)
|
||||||
|
|
Loading…
Add table
Reference in a new issue