home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!csus.edu!netcom.com!ort
- From: ort@netcom.com (David Oertel)
- Newsgroups: comp.lang.c++
- Subject: Re: Debugging output
- Summary: RE: debugging output
- Message-ID: <1992Nov9.112051.21350@netcom.com>
- Date: 9 Nov 92 11:20:51 GMT
- References: <spuler.720931050@coral>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- Lines: 17
-
-
-
- >> I was wondering whether anyone has any suggestions as to how to use the neat
- >> operator << to produce debugging output in a way that it can be removed
- >> easily from production code. The obvious method is:
-
- >> #ifdef DEBUG
- >> cerr << .....
- >> #endif
-
- >> but I'd like to avoid the #ifdef -#endif lines.
-
- I didn't see the truly obvious answer to this post. That is to
- put the #ifdef,#endif around the body of an inline function.
-
- ort@netcom.com
- --
-