test-suite fixes (Java directors) for compilers that don't support varargs

This commit is contained in:
William S Fulton 2018-05-05 15:35:46 +01:00
commit 8555973a48
2 changed files with 5 additions and 5 deletions

View file

@ -175,9 +175,9 @@ namespace MyNS {
%{
// throw is deprecated in C++11 and invalid in C++17 and later
#if defined(__cplusplus) && __cplusplus >= 201103L
#define throw(TYPES...)
#define throw(TYPE1, TYPE2)
#else
#define throw(TYPES...) throw(TYPES)
#define throw(TYPE1, TYPE2) throw(TYPE1, TYPE2)
#if defined(_MSC_VER)
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
#endif