|
| ASMEXPAND Compiler Directive| Abbreviation | | AE | | Arguments | | None. | | Default | | ASMEXPAND | | µVision | | Options — C166 — Misc Controls. | | Description | | The ASMEXPAND directive instructs the compiler preprocessor to expand all symbols used in ASM/ENDASM blocks. This is the default compiler setting. | | Example | |
#pragma noasmexpand
#define abc 1
#define xx0 2
#define xx1 3
#pragma asm
abc equ 2 ; above 'abc' not expanded
xx0 equ 10 ; above 'xx0' not expanded
#ifdef QQQ
xx1 equ 20
#endif
#pragma endasm
|
|
|