|
|||||||||||
|
Technical Support Support Resources
Product Information |
C51: Using #IF to Test ConditionsInformation in this article applies to:
SYMPTOMSIn A51, I can do the following:
with 2 or more conditions. However, in C51 I could not find a way to do this. The following code:
gives me an error message. What's wrong? CAUSEThe #if preprocessor directive in C expects C operators to be used. RESOLUTIONTry using the logical or operator ('||') as shown in the following.
That should work. MORE INFORMATION
Refer to a good C manual for more information about how to use the #if preprocessor directive. 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.