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

Function SwigPyObject_New

src/MeCab/MeCab_wrap.cpp:1776–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1774}
1775
1776SWIGRUNTIME PyObject *
1777SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1778{
1779 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1780 if (sobj) {
1781 sobj->ptr = ptr;
1782 sobj->ty = ty;
1783 sobj->own = own;
1784 sobj->next = 0;
1785 }
1786 return (PyObject *)sobj;
1787}
1788
1789/* -----------------------------------------------------------------------------
1790 * Implements a simple Swig Packed type, and use it instead of string

Callers 2

SwigPyObject_deallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected