Files
sex/tests/modules/gen/makers.sex
alex-eg d62a1d4c97 expand a module's toplevel macro calls for its importers
Its interface was read as written, so pub forms a macro wrote never
reached them, which list-macros' is-public? flag exists for. The
module's macros, and those its imports give it, are lent for the
reading and taken back after. One reading a type the module keeps to
itself cannot expand there, and gives importers nothing, as before.
2026-10-19 16:06:13 +03:00

4 lines
139 B
Scheme

;;; A macro module: what it writes is up to whoever calls it
(pub defmacro (constant name value)
`(pub fn ,name () int (return ,value)))