| ARM Technical Support Knowledge Articles | |
Applies to: General Topics
Information in this article applies to:
Why can't I use the #define preprocessor text substitution to make #pragma statements for the compiler?
#pragma and #define are both preprocessor statements and each requires its own separate line.
#pragma and #define statements must be on separate lines. The compiler generates an error if the following example is used:
#define asmbegin #pragma asm #define asmend #pragma endasm asmbegin asmend
Article last edited on: 2004-05-01 16:24:13
Did you find this article helpful? Yes No
How can we improve this article?