Common C51 & A51 headers are very useful. However, there seems to be no way to write code that is conditional upon command line defines that works for both the compiler and the assembler. For example, if I define the symbol _DEBUG on the command line, I can write -
$if _DEBUG Size set 100 ; ... $else Size set 50 ; ... $endif
#ifdef _DEBUG #define size 100 // ... #else #define size 50 // ... #endif
#ifdef __A51__ $if _DEBUG #define _DEBUG $endif #endif #ifdef _DEBUG // ... #endif
Yes, but try defining v1 and v2 at the command line, rather than in a header file.
Ahhhh. The SET symbols are not the same as the DEFINE macros. I'll forward this to engineering and see if they have a solution. Jon
Thanks, bill