1 2 3 4 5 6 7 8 9
#ifndef foo_h #include "foo.h" #error "Precompiled header foo_precompiled.h has not been loaded." #endif int foo() { return 0; }