mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Readded inline-c
as a macro of deftemplate
.
This commit is contained in:
parent
9772bc20f9
commit
a8032f3b72
@ -709,3 +709,7 @@ The expression must be evaluable at compile time.")
|
||||
(defmacro comp [:rest fns]
|
||||
(let [x (gensym)]
|
||||
(list 'fn [x] (comp-internal x fns))))
|
||||
|
||||
(doc inline-c "inlines some custom C code.")
|
||||
(defmacro inline-c [name def decl]
|
||||
(list 'deftemplate name (list) (eval def) (eval decl)))
|
||||
|
Loading…
Reference in New Issue
Block a user