Keil EC++ Compiler
Preprocessor Symbols
Define sets preprocessor symbols, which can be checked with #if, #ifdef and #ifndef. The defined names are case-sensitive. Optionally, each name can have a value. Define: Check, NoExtRam, X1=1+5 is identical to the following C preprocessor #define statements:
#define Check
#define NoExtRam
#define X1 1+5
Undefine clears previous Define assignments that are entered in the options dialog of a higher Target or Group level.
help里面有示例
可是我工程有100多个文件都需要这个宏,这100多个文件全部都去添加这个头文件吗?
100多文件都添加?有没有更好的办法……
一周热门 更多>