wxCALL_FOR_EACH compilation fix for VC++.
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 1 Nov 2012 18:25:07 +0000 (18:25 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 1 Nov 2012 18:25:07 +0000 (18:25 +0000)
commite08d449f2ecbf6daf58669a911da944e559dcf49
treef94e6dfccebce0391b9b6deeff898fe0bd63fa64
parent9e0959cda4dc688c1c7287f99fb61a895f5cfd90
wxCALL_FOR_EACH compilation fix for VC++.

VC++ has a bug where __VA_ARGS__ is incorrectly expanded as a single
token, contrary to C99. The solution is to pass the arguments to another
macro as a single token inside parenthesis.

See http://stackoverflow.com/questions/9183993/msvc-variadic-macro-expansion
for the gory details.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/cpp.h