wxWidgets/tests
Vadim Zeitlin c2e18d75e5 Fix wxCALL_FOR_EACH() to work with more than 2 arguments with MSVC.
Due to a bug in MSVC handling of __VA_ARGS__ (see
https://connect.microsoft.com/VisualStudio/feedback/details/380090/variadic-macro-replacement)
wxCALL_FOR_EACH() didn't work correctly as long as more than two arguments
were used with it.

Work around the bug by protecting __VA_ARGS__ from being incorrectly passed as
a single token to the macro being called on every step: this was already done
for wxCALL_FOR_EACH itself with wxCALL_FOR_EACH_, but we need to do it for all
the helper macros too.

Also add a test checking that this does, actually, work.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-09-14 00:59:53 +00:00
..
any
archive
arrays
base64
benchmarks
cmdline
config
controls
datetime
drawing
events
exec
file
filekind
filename
filesys
font
fontmap
formatconverter
fswatcher
geometry
graphics
hashes
html
image
interactive
intl
lists
log
longlong
mbconv
menu
misc Fix wxCALL_FOR_EACH() to work with more than 2 arguments with MSVC. 2014-09-14 00:59:53 +00:00
net
regex
scopeguard
sizers
streams
strings
textfile
thread
toplevel
uris
validators
vectors
weakref
window
xlocale
xml
asserthelper.cpp
asserthelper.h
descrip.mms
dummy.cpp
horse.ani
horse.bmp
horse.cur
horse.gif
horse.ico
horse.jpg
horse.pcx
horse.png
horse.pnm
horse.tga
horse.tif
horse.xpm
makefile.bcc
makefile.gcc
Makefile.in
makefile.vc
runtests.bat
test_vc7_printfbench.vcproj
test_vc7_test_drawing.vcproj
test_vc7_test_drawingplugin.vcproj
test_vc7_test_gui.vcproj
test_vc7_test.vcproj
test_vc8_printfbench.vcproj
test_vc8_test_drawing.vcproj
test_vc8_test_drawingplugin.vcproj
test_vc8_test_gui.vcproj
test_vc8_test.vcproj
test_vc9_printfbench.vcproj
test_vc9_test_drawing.vcproj
test_vc9_test_drawingplugin.vcproj
test_vc9_test_gui.vcproj
test_vc9_test.vcproj
test.bkl
test.cpp
testableframe.cpp
testableframe.h
testdata.fc
testdate.h
testfile.h
testimage.h
testprec.h