The #warning directive is similar to the #error directive.
#ifndef MY_MACRO #warning " MY_MACRO set to default" #define MY_MACRO 1234 #endif