mods for VC++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8420 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e734cd32ba
commit
4d5c0f7636
3 changed files with 22 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ std::string& test_reference_out() {
|
|||
return x;
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(disable: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||
#endif
|
||||
|
||||
void test_throw() throw(std::string){
|
||||
static std::string x = "test_throw message";
|
||||
throw x;
|
||||
|
|
@ -53,6 +57,10 @@ void test_const_pointer_throw() throw(const std::string *) {
|
|||
throw new std::string("foo");
|
||||
}
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#pragma warning(default: 4290) // C++ exception specification ignored except to indicate a function is not __declspec(nothrow)
|
||||
#endif
|
||||
|
||||
%}
|
||||
|
||||
%apply const std::string& { std::string *GlobalString2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue