| 13371 | } |
| 13372 | |
| 13373 | SWIGINTERN PyObject *_wrap_version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
| 13374 | PyObject *resultobj = 0; |
| 13375 | std::string result; |
| 13376 | |
| 13377 | if (!PyArg_ParseTuple(args,(char *)":version")) SWIG_fail; |
| 13378 | { |
| 13379 | try { |
| 13380 | result = CRFSuite::version(); |
| 13381 | } catch(const std::invalid_argument& e) { |
| 13382 | SWIG_exception(SWIG_IOError, e.what()); |
| 13383 | } catch(const std::runtime_error& e) { |
| 13384 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 13385 | } catch (const std::exception& e) { |
| 13386 | SWIG_exception(SWIG_RuntimeError, e.what()); |
| 13387 | } catch(...) { |
| 13388 | SWIG_exception(SWIG_RuntimeError,"Unknown exception"); |
| 13389 | } |
| 13390 | } |
| 13391 | resultobj = SWIG_From_std_string(static_cast< std::string >(result)); |
| 13392 | return resultobj; |
| 13393 | fail: |
| 13394 | return NULL; |
| 13395 | } |
| 13396 | |
| 13397 | |
| 13398 | static PyMethodDef SwigMethods[] = { |
nothing calls this directly
no test coverage detected