We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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);