diff options
author | Tom Rondeau | 2012-03-16 16:56:00 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-03-16 16:56:00 -0400 |
commit | 9ebc20522bf1f7ab6e7e89301d5504912a315b32 (patch) | |
tree | 804ac931da65cadb36cee6cb22c7e5145792ea91 /gruel/src/swig/pmt_swig.i | |
parent | b42436cd0b2304d93729d356ad6b94478a540e5e (diff) | |
parent | f9a07338b9c7c0af19d64d24c47eaa9f7fe1ba38 (diff) | |
download | gnuradio-9ebc20522bf1f7ab6e7e89301d5504912a315b32.tar.gz gnuradio-9ebc20522bf1f7ab6e7e89301d5504912a315b32.tar.bz2 gnuradio-9ebc20522bf1f7ab6e7e89301d5504912a315b32.zip |
Merge remote branch 'jblum/gruel_common_swig'
Diffstat (limited to 'gruel/src/swig/pmt_swig.i')
-rw-r--r-- | gruel/src/swig/pmt_swig.i | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/gruel/src/swig/pmt_swig.i b/gruel/src/swig/pmt_swig.i index 0c937edfc..954501863 100644 --- a/gruel/src/swig/pmt_swig.i +++ b/gruel/src/swig/pmt_swig.i @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2011 Free Software Foundation, Inc. + * Copyright 2011-2012 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -34,26 +34,13 @@ #include <gruel/pmt.h> %} +%include "gruel_common.i" //load generated python docstrings %include "pmt_swig_doc.i" //////////////////////////////////////////////////////////////////////// // 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"); - } - -} // Template intrusive_ptr for Swig to avoid dereferencing issues namespace pmt{ |