We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1662 - macros should not use unparenthesized parameters
Summary: macros should not use unparenthesized parameters
Status: RESOLVED INVALID
Alias: None
Product: SDL_net
Classification: Unclassified
Component: misc (show other bugs)
Version: 1.2.8
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-12 22:59 UTC by Carl Reinke
Modified: 2013-01-04 09:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carl Reinke 2012-12-12 22:59:30 UTC
See section 3.10.2 of [1] for a detailed explanation of why.

The particular macros that I've experienced violating this are SDL_Write16 and SDL_Write32.  There may be others.

[1] http://linux.web.cern.ch/linux/scientific4/docs/rhel-cpp-en-4/macro-pitfalls.html
Comment 1 Carl Reinke 2012-12-12 23:01:14 UTC
Sorry, that should be SDLNet_Write16 and SDLNet_Write32.
Comment 2 Sam Lantinga 2012-12-31 16:31:57 UTC
Is this with the latest version of SDL_net in Mercurial?
http://hg.libsdl.org/SDL_net/

It looks like this has already been cleaned up (but not yet released)
Comment 3 Carl Reinke 2013-01-04 09:57:37 UTC
Indeed, it does appear to be fixed in Mercurial.