by eerimoq on 9/22/19, 10:36 AM with 1 comments
by s_gourichon on 9/25/19, 3:11 PM
They are less advanced on some areas, but more advanced on some.
For example, they do not depend on C11 generic feature, which is an advantage on the many non-C11 platforms (like 8-bit-targeting compiler SDCC).
On the strong side:
* log any expression: `somemacro(foo.bar())` will log `foo.bar() = 42` * compile-time global enable/disable * compile-time debug level threshold
I've been planning to share that for a moment.
Some working parts are used on https://github.com/cpcitor/color-flood-for-amstrad-cpc/blob/...
It will eventually appear on https://github.com/fidergo-stephane-gourichon?tab=repositori...
I also wrote similar macros for C++ mentioned on https://news.ycombinator.com/item?id=21071367