#warning directive

The #warning directive, as shown in the following listing is used as it is similar to the #error directive.

Listing: #warning directive


#ifndef MY_MACRO
  #warning "MY_MACRO set to default"

  #define MY_MACRO 1234

#endif