C
Caj Zell
Hello,
I have a large collection of .c/.cpp and .h files in a project and
want to add "enter" and "leave" printf:s in every function. Like
int foo(int t)
{
int a;
printf("Entering foo...\n");
return t;
printf("Leaving foo...\n");
}
I don't have the possibility of using gcov or anything similar and
just want to have these printf's added.
I have tried to google around for it and stumbled upon RecDescent, but
I haven't found a way to do this.
Can this be done in Perl? Maybe it is already done?
I have a large collection of .c/.cpp and .h files in a project and
want to add "enter" and "leave" printf:s in every function. Like
int foo(int t)
{
int a;
printf("Entering foo...\n");
return t;
printf("Leaving foo...\n");
}
I don't have the possibility of using gcov or anything similar and
just want to have these printf's added.
I have tried to google around for it and stumbled upon RecDescent, but
I haven't found a way to do this.
Can this be done in Perl? Maybe it is already done?