2 ms·
It can be both useful and obscure ;-) I realize it's not black magic, it's just uncommon. I used this trick to declare and generate code for an entire parser,
by multun 7y ago
It can be both useful and obscure ;-) I realize it's not black magic, it's just uncommon.
I used this trick to declare and generate code for an entire parser, it's lovely.
I recently switched to the other style of C-macro though:
#define X(A, B, C) ...
#include <math/apply_operators.h>
#undef X
This style is less powerful but doesn't require the annoying \ at the end of lines.