"Aaron Becher" <aaron.becher@eds.com> wrote in message news:02-09-078...> What would be the best approach? I have a VERY large pool of source> code that needs a certain line of code inserted at the beginning of> every function (a macro).

You may want to have a look at OpenC++
(http://www.csg.is.titech.ac.jp/~chiba/openc++.html),
looks like it is not far away from what you need
(although you would have to invest some work to change
handling of preprocessor stuff).