Is there a macro preprocessor for Delphi 7?
There isn’t one built in so maybe there’s a possibilty to use a third party or some other languages preprocessor (like c preprocessor).
If there’s one, how to set it up for Delphi 7?
I’m trying to do function inlining (for speed). Macro preprocessor seems to be the only easy option for delphi.
Thanks,
Egon
You can always run an external macro processor, such as m4 or even (shudder) cpp on your code before you compile it. I wouldn’t recommend this however – in my experience the benefits of inlining (which is what you seem to want to do) are quite small, and can be offset by slowdowns caused increases in code size.