Re: BUG()

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

 



Anupam Kapoor <anupam.kapoor@gmail.com> writes:

> On Fri, 2 Jul 2004 11:44:25 +0200, Borislav Petkov
> <borislav.petkov@t-online.de> wrote:
> > 2. Where does the compiler get those __LINE__ and __FILE__ from?
> they are gcc specific. i know of __FUNCTION__ which provides the
> function name. i am sure there are others too...

ISO/IEC 9899:1999

6.10.8 Predefined macro names

      [#1]  The  following macro names148) shall be defined by the
       implementation:

       ...

       __FILE__ The presumed name of the  current  source  file  (a
                character string literal).149)

       __LINE__ The presumed line number (within the current source
                file)  of  the  current  source  line  (an  integer
                constant).149)

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux