root/06/devel-old/algos.i

Revision 174, 340 bytes (checked in by ug, 2 years ago)

Worked some more on pattern.cc ... not done yet, though.

Line 
1 %module algos
2
3 %{
4 #include "algos.h"
5 %}
6
7 %exception {
8    try {
9       $action
10    } catch(AlgoError e) {
11       AlgoError *ecopy = new AlgoError(e);
12       PyObject *err = SWIG_NewPointerObj(ecopy, SWIGTYPE_p_AlgoError, 1);
13       PyErr_SetObject((PyObject *) SWIGTYPE_p_AlgoError->clientdata, err);
14       return NULL;
15    }
16 }
17
18 %include algos.h
19
Note: See TracBrowser for help on using the browser.