Beautiful. Also, after 30+ years of writing C and C++, I learned one thing by casually browsing the source code: you can use a preprocessor macro in an #include statement. Thanks.
https://gcc.gnu.org/onlinedocs/cpp/Computed-Includes.html
I used it to include architecture-specific source code and also a generated C file containing a table of Linux system calls defined by the Linux UAPI lone is compiled against.
The makefile defines those macros by passing flags:
-D LONE_ARCH_SOURCE='"$(ARCH.c)"' -D LONE_NR_SOURCE='"NR.c"'PS: My current project implements a lisp... rendered as JSON. Some other angle on beauty...
> My current project implements a lisp... rendered as JSON. Some other angle on beauty...
Hey, feel free to share it. I'm curious about your project.