I am looking at injecting some code into a function and run that code just before a function returns. However, I do not want to include the code that I want to inject into that function as a header file etc.
Is there a way, to compile a file in a way such that we do not need to include the extra code as a header file and at the same time we can inject the extra code in a specefic function and run it before it terminates..
Just looking for ideas..
Thanks