Quote:
|
Originally Posted by graemef
You could add a println() or even a macro which will then print out some diagnostics; but maybe I don't properly understand your question.
|
Basically , i want to call some trace function's when i enter into the functions and and when i come out of it by adding a single line after the function name.
example.
foo(){
sample("foo");
..
..
..
}
sample("foo") will print "foo" when the function is called and also returned.
basically constructors and destructors function.
i am not sure if it is really possible in C. But it is possible in C++.
~ik