superupon / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

define macros to simplify warning suppression #229

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The code for disabling/resuming warnings in MSVC involves #if/#endif and is
ugly.  We should define macros to simplify the syntax:

GTEST_DISABLE_MSVC_WARNING_(4238)
...
GTEST_RESUME_MSVC_WARNING_()

Original issue reported on code.google.com by zhanyong...@gmail.com on 27 Nov 2009 at 4:46

GoogleCodeExporter commented 9 years ago
Forget about this - C++ doesn't allow a macro to expand to something containing
preprocessor directives. :-(

Original comment by zhanyong...@gmail.com on 30 Nov 2009 at 7:33