source: swig/creddy.i @ 9e51a80

abac0-leakabac0-meicompt_changesgec13mei-idmei-rt0-nmei_rt0mei_rt2mei_rt2_fix_1meiyap-rt1meiyap1rt2tvf-new-xml
Last change on this file since 9e51a80 was 53c83f4, checked in by Mike Ryan <mikeryan@…>, 14 years ago

handle C++ exceptions in perl/python

  • Property mode set to 100644
File size: 278 bytes
Line 
1%module Creddy
2
3%include "exception.i"
4
5%exception {
6    try {
7        $action
8    }
9    catch (const std::exception &e) {
10        SWIG_exception(SWIG_RuntimeError, e.what());
11    }
12}
13
14%{
15#include "creddy.hh"
16using namespace Creddy;
17%}
18
19%include "creddy.h"
20%include "creddy.hh"
Note: See TracBrowser for help on using the repository browser.