Oracle® Solaris Studio 12.4: C++ User's Guide

Exit Print View

Updated: March 2015
 
 

2.5.4 Warnings and Errors

The #error and #warning preprocessor directives can be used to generate compile-time diagnostics.

#error token-string

Issue error diagnostic token-string and terminate compilation

#warning token-string

Issue warning diagnostic token-string and continue compilation.