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