Clear Filters
Clear Filters

How to get rid of this error?

3 views (last 30 days)
Aditya
Aditya on 5 Aug 2013
While compiling the following function prototype of my header file I am getting an error as "extraneous old-style parameter list".
extern FUNC(Std_ReturnType, RTE_PUBLIC_CODE) code_test(OUT P2VAR(PmpMngrCmd_T, AUTOMATIC, RTE_APPL_DATA)PmpMngrCmd);
where code_test is my function name and PmpMngrCmd in the function arguement while all other variables are very specific to a compiler, so for error free compilation in LCC I have defined them as empty macros like
#define FUNC(Std_ReturnType, RTE_PUBLIC_CODE)
#define P2VAR(PmpMngrCmd_T, AUTOMATIC, RTE_APPL_DATA)
#define OUT
Pls help

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!