Home > Electronics Tutorials > C Language Tutorial > Preprocessing Directives - #error

C Language Programming Library Reference Guide

Preprocessing Directives - #error

The #error directive will cause the compiler to halt compiling and return with the specified error message.

Syntax:

#error message Examples: #ifndef VERSION
#error Version number not specified.
#endif
Note: To report broken links or to submit your projects, tutorials please email to Webmaster

Discover

     more......