muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
032bf49f28
commit
8d9b8dbfe5
7 changed files with 42 additions and 0 deletions
|
|
@ -5,6 +5,12 @@
|
||||||
|
|
||||||
%module cplusplus_throw
|
%module cplusplus_throw
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%nodefaultctor;
|
%nodefaultctor;
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
%module default_args
|
%module default_args
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%include "std_string.i"
|
%include "std_string.i"
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
%module(directors="1") director_exception
|
%module(directors="1") director_exception
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
%include "exception.i"
|
%include "exception.i"
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
last resource, catch everything but don't override
|
last resource, catch everything but don't override
|
||||||
user's throw declarations.
|
user's throw declarations.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
%module extern_throws
|
%module extern_throws
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
#include <exception>
|
#include <exception>
|
||||||
extern int get() throw(std::exception);
|
extern int get() throw(std::exception);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
// Massive primitive datatype test.
|
// Massive primitive datatype test.
|
||||||
%module(directors="1") primitive_types
|
%module(directors="1") primitive_types
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
// Ruby constant names
|
// Ruby constant names
|
||||||
#pragma SWIG nowarn=SWIGWARN_RUBY_WRONG_NAME
|
#pragma SWIG nowarn=SWIGWARN_RUBY_WRONG_NAME
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
%module throw_exception
|
%module throw_exception
|
||||||
|
|
||||||
|
%{
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||||
|
#endif
|
||||||
|
%}
|
||||||
|
|
||||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) Namespace::enum1;
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) Namespace::enum1;
|
||||||
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) Namespace::enum2;
|
%warnfilter(SWIGWARN_RUBY_WRONG_NAME) Namespace::enum2;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue