~bouncepaw/agidel-stdlib

d6ce4fa907abe05255f9add0957c3ee308078df3 — Timur Ismagilov 5 years ago 0f5b6fe
Add undef to Agidel/C
1 files changed, 3 insertions(+), 1 deletions(-)

M c.scm
M c.scm => c.scm +3 -1
@@ 267,6 267,8 @@
              (-string-join (-map expand-prep-elif (-list 'clause* ...)) "")))))

 (define (prep-error error-msg) (format "#error ~A\n" error-msg))
 ;; todo: add support for parameterized macros
 (define (defmacro id . replacement)
   (format "#define ~A ~A" id (-string-join (-map -->string replacement))))
   (format "#define ~A ~A\n" id (-string-join (-map -->string replacement))))
 (define (undef id) (format "#undef ~A\n" id))
 )