This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/77488] Proposal for __FILENAME_ONLY__


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]