This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42579] [PATCH] support for obtaining file basename
- From: "cfriedt at visible-assets dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2010 09:54:38 -0000
- Subject: [Bug c/42579] [PATCH] support for obtaining file basename
- References: <bug-42579-12496@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from cfriedt at visible-assets dot com 2010-04-30 09:54 -------
(In reply to comment #0)
> Please consider this patch. It adds support for obtaining file basename via
> __FILE_BASENAME__.
Please do!
What would also be really nice would be to have similar functionality for C++,
with __CLASS__ and __METHOD__ macros.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42579