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.
This commit is contained in:
2026-10-19 14:18:56 +03:00
parent 7c897b6dc6
commit 1dd1cf0ae9
6 changed files with 141 additions and 11 deletions

View File

@@ -0,0 +1,6 @@
(include stdio.h)
(import gen/made)
(pub fn main () int
(printf "made %d %d %d %d\n" (forty-two) (seven) (one) (two))
(return 0))