On Fri, Mar 23, 2018 at 6:43 PM, Alexei Starovoitov [off-list ref] wrote:
it's not the limit I'm hitting, but self referential issue.
Exactly half gets expanded.
I don't think there is an easy workaround other
than duplicating the whole chain of REPEAT macro twice
with slightly different name.
Take a look at the __MAP() macro in include/linux/syscalls.h.
It basically takes a "transformation" as its argument, and does it <n>
times, where 'n' is the first argument (but could be self-counting).
Maybe it will give you some ideas.
... and maybe it will just drive you mad and make you gouge out your
eyes with a spoon. Don't blame the messenger.
Linus