RE: #line directive and -D option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux