What is the way of throwing an error using preprocessing directives to the Arduino Compiler and forcing it to stop compilation?

Tam ca

New member
What is the way of throwing an error using preprocessing directives to the Arduino Compiler and forcing it to stop compilation?
A. #stop
B. #cut
C. #error
D. #warning
 
Answer: C
Explanation: The #error directive first throws an error to the Arduino IDE which is then displayed and then the compilation process is stopped prematurely. This is used to enable the user to stop the compilation process programmatically if some criteria or condition is not met before he or she can allow the program to start running.
 

Tìm kiếm

Back
Top