diff options
Diffstat (limited to 'wrappers/swig/botan.swg')
-rw-r--r-- | wrappers/swig/botan.swg | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/wrappers/swig/botan.swg b/wrappers/swig/botan.swg new file mode 100644 index 000000000..9088f4272 --- /dev/null +++ b/wrappers/swig/botan.swg @@ -0,0 +1,26 @@ +/************************************************* +* SWIG Interface for Botan * +*************************************************/ +%module botan + +%include "typemaps.i" +%include "std_string.i" +%include "exception.i" +%include "constraints.i" +%include "carrays.i" + +%{ +#include "base.h" +%} + +%exception { + try { + $action + } + catch(std::exception& e) + { + SWIG_exception(SWIG_RuntimeError, e.what()); + } +} + +%include "base.h" |