3 ms·
You can also call 'cpp' on the file. When doing heavy macrology (e.g. https://github.com/silentbicycle/kona/blob/master/scalar.h https://github.com/silentbicycl
by silentbicycle 15y ago
You can also call 'cpp' on the file. When doing heavy macrology (e.g. https://github.com/silentbicycle/kona/blob/master/scalar.h https://github.com/silentbicycle/kona/blob/master/scalar.h) I like to work in a file which is just
#include "the_macro.h"
THE_MACRO(example, args);
and call
cpp macrotest.h | fmt -w72
(using fmt since multi-line macros will end up on one line otherwise).