MCPcopy Create free account
hub / github.com/chokkan/crfsuite / _wrap_version

Function _wrap_version

swig/python/export_wrap.cpp:13373–13395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13371}
13372
13373SWIGINTERN 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;
13393fail:
13394 return NULL;
13395}
13396
13397
13398static PyMethodDef SwigMethods[] = {

Callers

nothing calls this directly

Calls 2

SWIG_From_std_stringFunction · 0.85
versionFunction · 0.70

Tested by

no test coverage detected