revert last %exception changes for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6952 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c8b6a0687c
commit
e0a1a5231e
1 changed files with 3 additions and 11 deletions
|
|
@ -10,13 +10,7 @@
|
||||||
|
|
||||||
%include "exception.i"
|
%include "exception.i"
|
||||||
|
|
||||||
#ifdef SWIGCSHARP
|
%exception std::deque::getitem {
|
||||||
#define %genericexception %csexception
|
|
||||||
#else
|
|
||||||
#define %genericexception %exception
|
|
||||||
#endif
|
|
||||||
|
|
||||||
%genericexception std::deque::getitem {
|
|
||||||
try {
|
try {
|
||||||
$action
|
$action
|
||||||
} catch (std::out_of_range& e) {
|
} catch (std::out_of_range& e) {
|
||||||
|
|
@ -24,7 +18,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%genericexception std::deque::setitem {
|
%exception std::deque::setitem {
|
||||||
try {
|
try {
|
||||||
$action
|
$action
|
||||||
} catch (std::out_of_range& e) {
|
} catch (std::out_of_range& e) {
|
||||||
|
|
@ -32,7 +26,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
%genericexception std::deque::delitem {
|
%exception std::deque::delitem {
|
||||||
try {
|
try {
|
||||||
$action
|
$action
|
||||||
} catch (std::out_of_range& e) {
|
} catch (std::out_of_range& e) {
|
||||||
|
|
@ -40,8 +34,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef %genericexception
|
|
||||||
|
|
||||||
/* This macro defines all of the standard methods for a deque. This
|
/* This macro defines all of the standard methods for a deque. This
|
||||||
is defined as a macro to simplify the task of specialization. For
|
is defined as a macro to simplify the task of specialization. For
|
||||||
example,
|
example,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue