cpp doesn't like this very much:
I read through the 2007 revision of the C99 standard and it doesn't comment on this usage, but a natural reading would imply that it should be correct. However, cpp, even with -std="c99", does not approve.
Does anyone have a definite answer whether this is/is not correct?
edit: I'm aware that wanting to do something like this makes me a bad person. I don't care.
Code:
foo_p.h: #ifdef FOO
Code:
foo.h: #include "foo_p.h" #error #include "foo_e.h"
Code:
foo_e.h: #endif
Does anyone have a definite answer whether this is/is not correct?
edit: I'm aware that wanting to do something like this makes me a bad person. I don't care.
Comment