Re: [GD-General] Clean way of generalizing CDECL
Brought to you by:
vexxed72
From: <cas...@ya...> - 2004-07-07 17:20:05
|
--- Brian Hook <ho...@bo...> wrote: > > Why don't you try: > > > > void __attribute__((cdecl)) foo( int x, int y, int z ); > > > > :) > > Err...hmmm, is that standard across all GCC incarnations? The man > pages I read indicated it had to be a suffix, but if not...well, that > simplifies things =) Hmm... I'm not totally sure. I think the documentation (http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html) is not completely clear, but apparently that works at least on recent gcc versions. I've been using that for some time. So, please, let me know if you find any issue! Thanks, -- Ignacio Castaño cas...@ya... ______________________________________________ Yahoo! lanza su nueva tecnología de búsquedas ¿te atreves a comparar? http://busquedas.yahoo.es |