Article View: borland.public.cppbuilder.nativeapi
Article #5950Re: event logging for runtime debug
From: Bob Gonder
Date: Wed, 22 Jun 2005 00:44
Date: Wed, 22 Jun 2005 00:44
12 lines
1409 bytes
1409 bytes
Robert G. Hoover wrote:
>I'd like to be able to log the names of the functions. These calls
>generate log entries with the MyForm->Name in them automaticaly. Is
>there a way to get the name of the function I'm currently inside?
>Something like...
>
>LogEvent(String("exiting ") + Name + "::" + FunctionName + "()...");
See "Predefined macros" in the TOOLS5.HLP
Specifically __FILE__ and __FUNC__
There are others as well.
Technical Details
Message-ID:
<00dhb119lk2dls4lh9tquqhmmsdlsdisgp@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42b86886$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,848a19c84e55796 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: event logging for runtime debug Date: Tue, 21 Jun 2005 17:44:23 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <00dhb119lk2dls4lh9tquqhmmsdlsdisgp@4ax.com> References: <42b86886$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.41.150 X-Trace: newsgroups.borland.com 1119401061 67.77.41.150 (21 Jun 2005 17:44:21 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail