Custom gcc preprocessor

Viewed 8683

Could you please give me an example of writing a custom gcc preprocessor?

My goal is to replace SID("foo") alike macros with appropriate CRC32 computed values. For any other macro I'd like to use the standard cpp preprocessor.

It looks like it's possible to achieve this goal using -no-integrated-cpp -B options, however I can't find any simple example of their usage.

2 Answers
Related