Re:Is the C++ preprocessor still needed?
by kevin_thibedeau on Tuesday May 09, 2017 @08:16PM
(#14304964)
You would be better served with m4.
[ Parent
| on HN ]
I looked into m4 recently but it seems to be about the worst template engine imaginable. I'd take the c pre-processor over that any day.
In the end I opted for a sed/awk/cat combo instead.
Could you please point to some good m4 learning and reference resources?
The only time I had to write m4 was admittedly in the context of autotools, but I found it really difficult to get answers to my questions about how everything worked.
I wrote up a little tutorial on using m4 as a CSS pre-processor:
http://blog.00null.net/post/144763147991/use-the-unix-m4-as-...
Wow thanks, that's a much better intro to the ones I cam across like this (http://mbreen.com/m4.html). I may have to reevaluate it.