[GD-General] Clean way of generalizing CDECL
Brought to you by:
vexxed72
From: Brian H. <ho...@bo...> - 2004-07-06 22:11:14
|
I'd like to be able specify CDECL in a cross-platform manner. On most 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 thing using a define, but damn, it's REAL ugly. Is there a cleaner way of doing this? |