Preprocessor - #error


The #error directive stops compilation. The general form of #error directive is as follows.

#error error-message

When this directive is encountered, the specified error message is displayed.