Define wxNOEXCEPT similarly to the existing wxOVERRIDE

Also define wxHAS_NOEXCEPT allowing to check if noexcept is supported.

This is not used in the library yet, but probably should be.
This commit is contained in:
Vadim Zeitlin
2020-04-09 19:48:26 +02:00
parent 80d5c95f93
commit f4f70102ea
2 changed files with 9 additions and 0 deletions

View File

@@ -285,6 +285,14 @@ typedef short int WXTYPE;
#define wxOVERRIDE
#endif /* HAVE_OVERRIDE */
/* same for noexcept keyword */
#if __cplusplus >= 201703L || wxCHECK_VISUALC_VERSION(14)
#define wxHAS_NOEXCEPT
#define wxNOEXCEPT noexcept
#else
#define wxNOEXCEPT
#endif
/*
Support for nullptr is available since MSVS 2010, even though it doesn't
define __cplusplus as a C++11 compiler.