Generating Compiler Warnings and Errors
suggest changeCompiler warnings can be generated using the #warning
directive, and errors can likewise be generated using the #error
directive.
#if SOME_SYMBOL
#error This is a compiler Error.
#elif SOME_OTHER_SYMBOL
#warning This is a compiler Warning.
#endif
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents