#define statement reported error message
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I found the following define statement, compiler reported error, not very understand, need some helps. :)
/*test comment*/
#define SM_INT(dptr, off) \
/*test comment*/
(unsigned int)( (((unsigned int)(dptr[(off)]) & (unsigned int)0x000000FFU) << 8U) \
/*test comment*/
| (((unsigned int)(dptr[(off)+1U]) & (unsigned int)0x000000FFU)) )Error is: compiler requires a type specifier for all decalarations; user of undeclared identifier "dptr"