Can anyone tell me, how can I see the typedef replacement string.
Actually we could see the preprocessor replacement using cc -E filename.c . So like that I want to see the typedef replacement.
Can anyone tell me, how can I see the typedef replacement string. Actually we
Share
This (and also the
-E) depends on the compiler you are using.That said, I doubt this is possible with any compiler. Contrary to macros, typedefs are not just text replacements.
Please note also that the output of a potential typedef expanding program is not necessarily valid C code, e.g. instances the same struct will become incompatible.