The #error directive forces the compiler to stop compilation when it is encountered. It is used primarily for debugging. Its general form is
#error message
When #error is encountered, the message and the line number are displayed.