RE: [GD-General] Clean way of generalizing CDECL
Brought to you by:
vexxed72
From: Stefan B. <Ste...@di...> - 2004-07-08 11:28:51
|
Why do you want to generalize it? Isn't cdecl something very win32-specific anyway? /Stefan -----Original Message----- From: gam...@li... [mailto:gam...@li...] On Behalf Of Brian Hook Sent: 07 July 2004 00:11 To: gam...@li... Subject: [GD-General] Clean way of generalizing CDECL I'd like to be able specify CDECL in a cross-platform manner. On most=20 x86 compilers there's just the __cdecl keywod: void __cdecl foo( int x, int y, int z ); GCC, of course, does it completely differently: void foo( int x, int y, int z ) __attribute((cdecl)); So a simple #define won't work. Now, you can do a kind of convoluted=20 thing using a define, but damn, it's REAL ugly. Is there a cleaner way of doing this? ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 -=20 digital self defense, top technical experts, no vendor pitches,=20 unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Gamedevlists-general mailing list Gam...@li... https://lists.sourceforge.net/lists/listinfo/gamedevlists-general Archives: http://sourceforge.net/mailarchive/forum.php?forum_idU7 |