How to get rid of this error?

3 次查看(过去 30 天)
Aditya
Aditya 2013-8-5
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by