This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

The ## macro operator doesn\t work in the ARM compiler 6

The ## macro operator doesn\t work in the ARM compiler 6
for example, the following code can be compiled well using ARM compiler 5.06: However, it does not work with ARM compiler 6

#define FilterSOSStructDefine(n) typedef struct{unsigned int Coeff[##n##][6];unsigned int HistoryX[##n##][2];}sFilterSOS##n

FilterSOSStructDefine(2);
FilterSOSStructDefine(3);

Parents Reply Children