B
baumann@pan
hi all,
what's the problem of the macro below?
#define COMMENT_LINE(p) \
#if 0\
(p);\
#endif
when i compiled it in vs.net, it complains
c99.cpp(12) : error C2162: formal paramer of macro needed
c99.cpp(17) : error C2059: syntax error : "constant"
c99.cpp(17) : error C2065: "endif" : undeclared symbol
i don;t know why.
what's the problem of the macro below?
#define COMMENT_LINE(p) \
#if 0\
(p);\
#endif
when i compiled it in vs.net, it complains
c99.cpp(12) : error C2162: formal paramer of macro needed
c99.cpp(17) : error C2059: syntax error : "constant"
c99.cpp(17) : error C2065: "endif" : undeclared symbol
i don;t know why.