The #warning directive is used as it is similar to the #error directive as the following listing shows:
#ifndef MY_MACRO #warning "MY_MACRO set to default" #define MY_MACRO 1234 #endif