On Sun, 2003-05-11 at 12:38, Suseelan B Sarin wrote: > 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? ) Right. An inline function is not put line-for-line into the function that is calling it, as a preprocessor define would be. Instead the compiler intelligently decides what to do based on the resulting code from the inline and the call site. Robert Love -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/