Re: Clean way of generalizing CDECL

Jeremy Vanseader <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <[email protected]>
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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.