#ifndef DEF1 # error "DEF1 not defined" #endif #ifndef DEF2 # error "DEF2 not defined" #endif void foo(void) { }