mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Added a small macro for easier variable declaration
This commit is contained in:
parent
19c9721a78
commit
0e76d586ca
@ -22,6 +22,9 @@
|
|||||||
`(if (not ,(car body))
|
`(if (not ,(car body))
|
||||||
,@(cdr body)))
|
,@(cdr body)))
|
||||||
|
|
||||||
|
(define-macro (var v val)
|
||||||
|
`(define ,v ,val))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; Allow defining functions like:
|
;; Allow defining functions like:
|
||||||
;; (def name (param1 param2)
|
;; (def name (param1 param2)
|
||||||
|
Loading…
Reference in New Issue
Block a user