MCPcopy Create free account
hub / github.com/SamuraiT/mecab-python3 / _wrap_delete_Path

Function _wrap_delete_Path

src/MeCab/MeCab_wrap.cpp:4581–4609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4579
4580
4581SWIGINTERN PyObject *_wrap_delete_Path(PyObject *self, PyObject *args) {
4582 PyObject *resultobj = 0;
4583 mecab_path_t *arg1 = (mecab_path_t *) 0 ;
4584 void *argp1 = 0 ;
4585 int res1 = 0 ;
4586 PyObject *swig_obj[1] ;
4587
4588 if (!SWIG_Python_UnpackTuple(args, "delete_Path", 0, 0, 0)) SWIG_fail;
4589 res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_mecab_path_t, SWIG_POINTER_DISOWN | 0 );
4590 if (!SWIG_IsOK(res1)) {
4591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Path" "', argument " "1"" of type '" "mecab_path_t *""'");
4592 }
4593 arg1 = reinterpret_cast< mecab_path_t * >(argp1);
4594 {
4595 try {
4596 delete arg1;
4597 }
4598 catch (char *e) {
4599 SWIG_exception (SWIG_RuntimeError, e);
4600 }
4601 catch (const char *e) {
4602 SWIG_exception (SWIG_RuntimeError, (char*)e);
4603 }
4604 }
4605 resultobj = SWIG_Py_Void();
4606 return resultobj;
4607fail:
4608 return NULL;
4609}
4610
4611
4612SWIGPY_DESTRUCTOR_CLOSURE(_wrap_delete_Path) /* defines _wrap_delete_Path_destructor_closure */

Callers

nothing calls this directly

Calls 1

SWIG_Py_VoidFunction · 0.85

Tested by

no test coverage detected