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

Function SWIG_Python_InitShadowInstance

src/MeCab/MeCab_wrap.cpp:2300–2314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2298
2299
2300SWIGINTERN PyObject *
2301SWIG_Python_InitShadowInstance(PyObject *args) {
2302 PyObject *obj[2];
2303 if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
2304 return NULL;
2305 } else {
2306 SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2307 if (sthis) {
2308 SwigPyObject_append((PyObject*) sthis, obj[1]);
2309 } else {
2310 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2311 }
2312 return SWIG_Py_Void();
2313 }
2314}
2315
2316/* Create a new pointer object */
2317

Callers

nothing calls this directly

Calls 3

SwigPyObject_appendFunction · 0.85
SWIG_Python_SetSwigThisFunction · 0.85
SWIG_Py_VoidFunction · 0.85

Tested by

no test coverage detected