This is the mail archive of the gcc-help@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]

RE: #line directive and -D option


Hi Hiroki,

The __FILE__ is based on what you pass.

gcc -c foo.c
__FILE__ is "foo.c"

gcc -c ././././foo.c
__FILE__ is "././././foo.c"

If you don't want the prefix, don't append the prefix.

HTH,
--Eljay


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