This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Request for more info out of __FUNCTION__
- To: gcc <gcc at gcc dot gnu dot org>
- Subject: Request for more info out of __FUNCTION__
- From: Benjamin Scherrey <scherrey at switchco dot com>
- Date: Wed, 02 Feb 2000 14:13:58 -0600
- Organization: Proteus Technologies, Inc.
- Reply-To: scherrey at proteus-tech dot com
I have a little debug macro that displays where in my code I happen to
be. It uses the __FILE__, __LINE__, and __FUNCTION__ compile-time
variables to show me where the code is executing. One thing I would
find very useful is if the __FUNCTION__ variable would show methods as
"class::function" instead of just "function" as the messages kinda get
hard to differentiate when going through class hierarchies or
templated methods. Is this something that could easily be changed?
thanx & later,
Ben Scherrey