> From: "michael cheng" <[EMAIL PROTECTED]>
>
> > -fno-inline. It's all in the info file (and unlike most stuff in info,
this
> is
> > easy to find :-).
> But I want *everything else* inlined (if possible), except this one
function.
I don't know of any neat way around this (there's no "noinline" keyword or
attribute, for example) but you can hack up something like
/* foo.h */
...
/* int func(void) */
extern int (*const volatile func)(void); /* replace original declaration */
...
/* foo.c */
...
int func_renamed(void) { /* rename original function */
return 0;
}
int (*const volatile func)(void) = func_renamed; /* indirect calls through
this pointer */
...
then call func() to get the non-inlined version. It's even portable. ;)
-- Mat.
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )