#define blahblah(SWC_MAJOR_VER, SWC_MINOR_VER) \{ \Dt_RECORD_SWC_Identification vSWCinfo = \{ .DeSWCVersion = { .DeMajor = (SWC_MAJOR_VER), .DeMinor = (SWC_MINOR_VER) }, \}; \}error: expected primary-expression before ‘)’ token .DeSWCVersion = { .DeMajor = (SWC_MAJOR_VER), .DeMinor = (SWC_MINOR_VER) }, \co-pilot suggested code
#define blahblah(SWC_MAJOR_VER, SWC_MINOR_VER) \{ \Dt_RECORD_SWC_Identification vSWCinfo = \{ { (SWC_MAJOR_VER), (SWC_MINOR_VER) } }; \}I am getting compilation error if i use this working code in new build environ ment and i f i use co piot suggested code my build is compiling in new build enviroement
https://redd.it/1p1zaaa
@r_cpp