C++ only

The #warning directive

A preprocessor warning directive causes the preprocessor to generate a warning message but allows compilation to continue. The argument to #warning is not subject to macro expansion.

Read syntax diagramSkip visual syntax diagram#warning directive syntax
 
               .--------------------.
               V                    |
>>-#--warning----preprocessor_token-+--------------------------><
 

The preprocessor #warning directive is a language extension. The implementation preserves multiple white spaces.

End of C++ only


[ Top of Page | Previous Page | Next Page | Contents | Index ]