Renesas Technology, Tools FAQs
Last Updated: November 5, 2002
Document Number: 02102102_e
Q.
When I use a type-name defined as void by typedef as an argument in a function declaration, the error "unnamed parameter" occurs.
A.
M3T-CC32R restrictions state that a type-name defined as void by typedef cannot be used as an argument in a function declaration.
(Please refer to the related release note for more details.)
However, you can use a #define macro as an argument in a function declaration instead of a typedef.
[Example:]
Before Change
typedef void VOID;
int func(VOID)
{
return 0;
}
After Change
#define VOID void /* change VOID to #define macro */
int func(VOID)
{
return 0;
}
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales