Here’s how you can debug a lengthy #define. You will need to know a full object build string in your build tool (VERBOSE=1 make if you’re using cmake), and install GNU indent.


cc -E file.c | grep -v '^#' | indent > out mv out file.c make # rebuild your project with the new file

Now it’s easy to see what part of a macro is causing the problem.