Path: utzoo!attcan!uunet!samsung!umich!vela!schemers From: schemers@vela.acs.oakland.edu (Roland Schemers III) Newsgroups: comp.lang.c++ Subject: Re: automatic tracing of function entry/exit Message-ID: <3279@vela.acs.oakland.edu> Date: 6 Oct 90 21:07:29 GMT References: <52352@brunix.UUCP> Reply-To: schemers@vela.acs.oakland.edu (Roland Schemers III) Organization: Oakland University, Rochester MI Lines: 36 In article <52352@brunix.UUCP> jhc@iris.brown.edu writes: >Has anyone come up with a way to automatically trace function entries >and exits? We have a convention of wrapping our functions in hand coded >macros, e.g.: One way is mentioned in the new C++ ARM. It is as follows: // // Class tracer will trace entering and leaving a function. Just // Declare a Tracer variable at the beggining of the function. // // test() { // Tracer trace("test"); // ... // } class Tracer { const char *mess; public: Tracer(const char *m) { mess=m; cout << "Entering("<