add define support

This commit is contained in:
2025-10-22 22:31:03 +03:00
committed by Pavel Kulyov
parent a6348b7b5a
commit 951f96f340
2 changed files with 2 additions and 0 deletions

View File

@@ -256,6 +256,7 @@
((or ('struct . _)
('union . _)) (walk-struct form))
(('enum . _) (walk-enum form))
(('define name . rest) `(%define ,(atom-to-fmt-c name) ,@rest))
(else (walk-expr form))))
(define (emit-c sex-forms)