How do you use __WXFUNCTION__?

Bob wxwidgets at gmail.com
Sun Apr 20 06:00:48 PDT 2008


I'm trying to port some code that used __func__ to identify the current
function,
to GCC that uses something else, so I'm trying to use __WXFUNCTION__ as
documented
here:

http://www.lpthe.jussieu.fr/~zeitlin/wxWindows/docs/wxwin_miscellany.html#w=
xfunction

This version compiles, unlike all of my other attempts:

wxLogVerbose( wxT( "File: %s Function: %s Line: %d" ), wxT(__FILE__),
__WXFUNCTION__, __LINE__ );

but returns this:

08:53:40: File: program.cpp Function: ???t Line: 74

Clearly the functions is not called "???t".

What am I doing wrong?

This is with GCC wx2.8.7 UNICODE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080420/587=
a67d5/attachment.htm


More information about the wx-users mailing list