summaryrefslogtreecommitdiffstats
path: root/swig/Lasso.i
diff options
context:
space:
mode:
authorEmmanuel Raviart <eraviart@entrouvert.com>2004-10-02 22:23:57 +0000
committerEmmanuel Raviart <eraviart@entrouvert.com>2004-10-02 22:23:57 +0000
commiteee077c0e2f6e8a05803afb48ad5af4c2d01cde7 (patch)
treea1683daf7594cca15daf4c94fb69327d2075964c /swig/Lasso.i
parentfccd418c36034c39aa8d1890e49bc161a3c65777 (diff)
downloadlasso-eee077c0e2f6e8a05803afb48ad5af4c2d01cde7.tar.gz
lasso-eee077c0e2f6e8a05803afb48ad5af4c2d01cde7.tar.xz
lasso-eee077c0e2f6e8a05803afb48ad5af4c2d01cde7.zip
Removed SWIG_Warning which doesn't exist in Swig.
Updated Python tests.
Diffstat (limited to 'swig/Lasso.i')
-rw-r--r--swig/Lasso.i7
1 files changed, 1 insertions, 6 deletions
diff --git a/swig/Lasso.i b/swig/Lasso.i
index 2d8379e8..6a12a2ef 100644
--- a/swig/Lasso.i
+++ b/swig/Lasso.i
@@ -560,10 +560,6 @@ void build_exception_msg(int errorCode, char *errorMsg) {
sprintf(errorMsg, "%d / Lasso Error", errorCode);
}
-int get_exception_type(int errorCode) {
- return errorCode > 0 ? SWIG_Warning : SWIG_UnknownError;
-}
-
%}
%define THROW_ERROR
@@ -572,8 +568,7 @@ int get_exception_type(int errorCode) {
errorCode = $action
if (errorCode) {
char errorMsg[256];
- SWIG_exception(get_exception_type(errorCode),
- build_exception_msg(errorCode, errorMsg));
+ SWIG_exception(SWIG_UnknownError, build_exception_msg(errorCode, errorMsg));
}
}
%enddef