summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-param-util.h
diff options
context:
space:
mode:
authorShahbaz Youssefi <syoussefi@google.com>2019-12-16 16:23:21 (GMT)
committerShahbaz Youssefi <syoussefi@google.com>2019-12-16 16:27:52 (GMT)
commitd2016469064bdb488ce271c84684518d2716fec2 (patch)
treeca634916ef74462e613d53bf940076a21363d1c0 /googletest/include/gtest/internal/gtest-param-util.h
parent5b162a79d49d044690f3eb7d87ecc3b98a3f2e25 (diff)
downloadgoogletest-d2016469064bdb488ce271c84684518d2716fec2.zip
googletest-d2016469064bdb488ce271c84684518d2716fec2.tar.gz
googletest-d2016469064bdb488ce271c84684518d2716fec2.tar.bz2
Workaround VS bug w.r.t empty arguments to macros
Empty arguments can be passed to macros per C99 and C++11 specs, which can then be forwarded to other macros. Visual Studio's compiler has a bug in the following situation: #define A(x) #x #define B(x, y) A(x) B(, b) In the above case, Visual Studio first expands x to nothing, then complains that A is not invoked with the right amount of arguments. However, x in A(x) is still one argument, even if it expands to no preprocessing tokens. See also https://stackoverflow.com/a/7674214.
Diffstat (limited to 'googletest/include/gtest/internal/gtest-param-util.h')
0 files changed, 0 insertions, 0 deletions