This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/77488] Proposal for __FILENAME_ONLY__
- From: "phd at phd dot re" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 17 Aug 2018 12:26:17 +0000
- Subject: [Bug preprocessor/77488] Proposal for __FILENAME_ONLY__
- Auto-submitted: auto-generated
- References: <bug-77488-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77488
Piotr Henryk Dabrowski <phd at phd dot re> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |phd at phd dot re
--- Comment #6 from Piotr Henryk Dabrowski <phd at phd dot re> ---
You can use:
#line 2 "FileName.cpp"
at the very top (!) of all your files
to change the content of __FILE__.
This also affects compiler messages.