I want to preprocess files before gcc actually does its own preprocessing and parsing. Actually this is my problem:
I have nonstandard extension added to a c++ .h file, which gcc wont understand, so i must preprocess this non-standard extensions into standard c++, and then push my output to gcc.
What then i need to do is to plug-in a preprocessor for file, which must be called when a condition on file is met (when this non-standard extensions are met).
How do i go about adding such a functionality? through code or command-line argument to gcc?