S
sean
Hello, Everyone:
Recently I have a request to trrasfer some types between different
projects, i.e. one project is WORD, the other is unsigned short. So I
defnied a macro (TRANS2) to do this. However, the compiler just keep
"erroring" about this macro. Any one has idea about that ?
#define TRANS(x,y)
#ifdef x
#define x y
#endif
Usage:
#define TRANS(WORD,unsigned short) <= compile error..
Appreciate for any suggestions,
BR, MACRO newbie
Recently I have a request to trrasfer some types between different
projects, i.e. one project is WORD, the other is unsigned short. So I
defnied a macro (TRANS2) to do this. However, the compiler just keep
"erroring" about this macro. Any one has idea about that ?
#define TRANS(x,y)
#ifdef x
#define x y
#endif
Usage:
#define TRANS(WORD,unsigned short) <= compile error..
Appreciate for any suggestions,
BR, MACRO newbie