"Forwarded" __VA_ARGS__ can't be split up? - by demett

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 778757 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 2/7/2013 10:11:12 AM
Access Restriction Public



#define WORKS(X, Z, ...) (Z, X, __VA_ARGS__)
#define DOESNT(X, ...) WORKS(X, __VA_ARGS__)
WORKS(1, 2, 3, 4, 5)
DOESNT(1, 2, 3, 4, 5)

preprocesses to:

(2, 1, 3, 4, 5)
(2, 3, 4, 5, 1  )

The DOESNT macro should expand to the same thing as the WORKS macro, but it doesn't. It looks like the preprocessor is avoiding splitting up the forwarded __VA_ARGS__.
Sign in to post a comment.
Posted by Helen [MSFT] on 2/7/2013 at 6:38 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Macy [MSFT] on 2/7/2013 at 10:51 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)