root/05/release-0.5m/sgfpars.i

Revision 1, 341 bytes (checked in by ugz, 5 years ago)

Initial repository layout

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