For enter a log in function start:
In your regex, match the keyword "function". The keyword is used for function in C. So there is no problem to put the logs in start of the function.
For enter a log in function end:
It's a suggestion to put the logs in end of the function. From the function start, you can count the number of starting braces. Whenever close braces comes, reduce the count. If the count of braces become zero, it will be the end of function. There you can put the logs.
In reply to Re: parsing C functions.
by irah
in thread parsing C functions.
by onkar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |