mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-22 07:09:17 +02:00
Recognize cons types in funcall's
This commit is contained in:
parent
6fdbf13cbe
commit
a2fe40b348
1 changed files with 1 additions and 1 deletions
2
cgen.scm
2
cgen.scm
|
@ -177,7 +177,7 @@
|
|||
(wrap (lambda (s) (if (> num-args 0) s ""))))
|
||||
(string-append
|
||||
"#define funcall" n "(cfn" args ") "
|
||||
(wrap (string-append "if (prim(cfn)) { Cyc_apply(" n-1 ", (closure)a1, cfn" (if (> num-args 1) (substring args 3 (string-length args)) "") "); }"))
|
||||
(wrap (string-append "if (type_of(cfn) == cons_tag || prim(cfn)) { Cyc_apply(" n-1 ", (closure)a1, cfn" (if (> num-args 1) (substring args 3 (string-length args)) "") "); }"))
|
||||
(wrap " else { ")
|
||||
"((cfn)->fn)(" n ",cfn" args ")"
|
||||
(wrap ";}")
|
||||
|
|
Loading…
Add table
Reference in a new issue