Re: [GD-General] Clean way of generalizing CDECL
Brought to you by:
vexxed72
From: Jeremy V. <mad...@gm...> - 2004-07-08 19:49:06
|
Hey guys, The way I would choose, which is easy on the eyes, is to always define __cdecl functions with both, and then have defines that eliminate one syntax or the other depending on the platform. Such as: #ifdef WIN32 # define __attribute(x) #else # define __cdecl #endif int __cdecl myFunction(double whatever) __attribute((cdecl)); Actually, this is the same as Brian's CDECL_PRE and CDECL_POST - so I should probably just stick to lurking :p |