Using #include in a parameterized macro?

Has anyone ever managed to set up a #define such that you can do code like:
import("antigravity.cpp");
and have it expand to:
#include "antigravity.cpp"
?

If so, how did you get it to work?
The preprocessor doesn't allow # inside a #define, unless it's inside a singly or doubly quoted string, so it's not possible.
And it'd be pretty pointless, anyway.
-1 for the bad idea
+100 for the xkcd reference
Well, at least I'm at +99.

Thanks for telling me, I'll figure out some other way to do what I'm attempting...
haven't you got anything better to do with your life?
It seems pretty pointless.
Topic archived. No new replies allowed.