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

Function SwigPyBuiltin_hashfunc_closure

src/MeCab/MeCab_wrap.cpp:3348–3358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3346 return SwigPyBuiltin_hashfunc_closure(wrapper, a); \
3347}
3348SWIGINTERN Py_hash_t
3349SwigPyBuiltin_hashfunc_closure(SwigPyWrapperFunction wrapper, PyObject *a) {
3350 PyObject *pyresult;
3351 Py_hash_t result;
3352 pyresult = wrapper(a, NULL);
3353 if (!pyresult)
3354 return -1;
3355 result = SWIG_PyNumber_AsPyHash(pyresult);
3356 Py_DECREF(pyresult);
3357 return result;
3358}
3359
3360#define SWIGPY_ITERNEXTFUNC_CLOSURE(wrapper) \
3361SWIGINTERN PyObject * \

Callers

nothing calls this directly

Calls 1

SWIG_PyNumber_AsPyHashFunction · 0.85

Tested by

no test coverage detected