Doubt on inline fn.

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

 



Hi,
	Can I do "if ( InLnFn() )" where InLnFn is defined as a inline
function. GCC did not produce any error. But is there a catch somewhere?.  
I doubt this, because "if ( { return 1 } )" causes gcc to produce an
error.  (Or, is my understanding of inline fns itself is wrong? Is it the
complied object code for inline fn that will be inserted where it is
called? )

Thanks in advance,
S B Sarin(ee98291).

		

--
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