Menu

Error directive

Cyder

Error Directive

Function: tpp.c TPPLexer_Next

The c11 standard describes a #error directive, that can be used, to terminate the preprocessor and compilation.
TPP Implements this directive with the warning 4, which defaults to being a critical error, making it the only state, that causes tpp, to terminate prematurely.
The #error may be followed by a sequence of tokens until the next line-feed token, that will be used the error message

#if !__has_include(<stdio.h>)
#error We need <stdio.h>, to continue here!
#endif

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.