This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Type-generic macros with C
- From: Ian Lance Taylor <iant at google dot com>
- To: JÃrg Leis <joerg at joergleis dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 01 May 2010 10:01:50 -0700
- Subject: Re: Type-generic macros with C
- References: <1272643259.4438.39.camel@maria> <mcrljc4onal.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <1272657309.4438.50.camel@maria> <mcr4oisod3q.fsf@dhcp-172-17-9-151.mtv.corp.google.com> <1272701167.4212.8.camel@maria>
JÃrg Leis <joerg@joergleis.com> writes:
> A related question: Is it expected that in C99-mode GCC might not be
> able to compile a program because of the use of an inline function? I
> defined an inline function like this:
>
> inline int do()
> {
> // ...
> }
C99 mode should support inline functions just fine. If you are having
trouble, show us the complete test case and tell us what happens.
Also the version of gcc makes a difference; full support for C99
inline functions was first in gcc 4.3.
Ian