[FATAL]
The preprocessor has reached the maximum number of arguments allowed for a macro declaration.
#define A(p0, p1, ..., p1023, p1024) (p0+p1+...p1024)
Try to split your macro into two smaller ones.