Hi all, is there any automated way to insert macro to start of function body?
Let's say I have macro:
Collapse | Copy Code
#define WRITE_LINE printf("%s - %d\\n", __FUNCTION__, __LINE__);
And a function:
Collapse | Copy Code
void foo()
{
DoSomething();
}
What I want is somehow modify all functions in VisualStudio 2005 project to have it like follows:
Collapse | Copy Code
void foo()
{
WRITE_LINE
DoSomething();
}
Is it possible?
Thank you