diff options
author | Josh Blum | 2011-09-26 21:22:13 -0700 |
---|---|---|
committer | Johnathan Corgan | 2011-09-27 10:23:45 -0700 |
commit | 5b1c7b73d0cb2dbbf944c3be670a7f2d74547e0f (patch) | |
tree | 40dd14a914dd77f518edb5dc10d49b076212fbea /gr-audio | |
parent | 05870f5408cb8e6015a9051cf52855551ef647a4 (diff) | |
download | gnuradio-5b1c7b73d0cb2dbbf944c3be670a7f2d74547e0f.tar.gz gnuradio-5b1c7b73d0cb2dbbf944c3be670a7f2d74547e0f.tar.bz2 gnuradio-5b1c7b73d0cb2dbbf944c3be670a7f2d74547e0f.zip |
swig: language independent exception handler
Diffstat (limited to 'gr-audio')
-rw-r--r-- | gr-audio/swig/audio_swig.i | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/gr-audio/swig/audio_swig.i b/gr-audio/swig/audio_swig.i index 612e96d23..1e3cca299 100644 --- a/gr-audio/swig/audio_swig.i +++ b/gr-audio/swig/audio_swig.i @@ -23,24 +23,6 @@ #define GR_AUDIO_API //////////////////////////////////////////////////////////////////////// -// Language independent exception handler -//////////////////////////////////////////////////////////////////////// -%include exception.i - -%exception { - try { - $action - } - catch(std::exception &e) { - SWIG_exception(SWIG_RuntimeError, e.what()); - } - catch(...) { - SWIG_exception(SWIG_RuntimeError, "Unknown exception"); - } - -} - -//////////////////////////////////////////////////////////////////////// // standard includes //////////////////////////////////////////////////////////////////////// %include "gnuradio.i" |