mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
parent
0c6eae63c8
commit
926eb08b03
@ -188,9 +188,10 @@
|
||||
|
||||
(doc defdynamic-once "Creates a dynamic variable and sets its value if it's not already defined.")
|
||||
(defmacro defdynamic-once [var expr]
|
||||
(list 'if (list 'defined? var)
|
||||
()
|
||||
(list 'defdynamic var expr)))
|
||||
(eval
|
||||
(list 'if (list 'defined? var)
|
||||
()
|
||||
(list 'defdynamic var expr))))
|
||||
|
||||
(doc inline-c "Inlines some custom C code.")
|
||||
(defmacro inline-c [name defcode :rest declcode]
|
||||
|
Loading…
Reference in New Issue
Block a user