|
|||||||||||
Technical Support Support Resources
Product Information |
C166: Using Macros with In-line AssemblyInformation in this article applies to:
QUESTIONI have defined the following macro that should generate an ATOMIC instruction that will block interrupts for n instructions.
However, the macro does not work. The pound character ('#') is the stringize macro operator which converts n into a string. Is there a way to avoid this? ANSWERYes. Put n inside parentheses. For example:
The parentheses prevent string conversion. MORE INFORMATION
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.