diff options
Diffstat (limited to 'include/gras/element.i')
-rw-r--r-- | include/gras/element.i | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/include/gras/element.i b/include/gras/element.i index ecfa898..bcf07c2 100644 --- a/include/gras/element.i +++ b/include/gras/element.i @@ -13,23 +13,11 @@ namespace gras } //////////////////////////////////////////////////////////////////////// -// remove base class warning +// remove base class warning -- boost::shared_ptr<ElementImpl> //////////////////////////////////////////////////////////////////////// #pragma SWIG nowarn=401 //////////////////////////////////////////////////////////////////////// -// http://www.swig.org/Doc2.0/Library.html#Library_stl_exceptions -//////////////////////////////////////////////////////////////////////// -%include <exception.i> - -%exception -{ - try{$action} - catch (const std::exception& e) - {SWIG_exception(SWIG_RuntimeError, e.what());} -} - -//////////////////////////////////////////////////////////////////////// // Export swig element comprehension //////////////////////////////////////////////////////////////////////// %include <std_string.i> |