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

Function SWIG_Python_ArgFail

src/MeCab/MeCab_wrap.cpp:2501–2512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2499}
2500
2501SWIGRUNTIME int
2502SWIG_Python_ArgFail(int argnum)
2503{
2504 if (PyErr_Occurred()) {
2505 /* add information about failing argument */
2506 char mesg[256];
2507 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2508 return SWIG_Python_AddErrMesg(mesg, 1);
2509 } else {
2510 return 0;
2511 }
2512}
2513
2514SWIGRUNTIMEINLINE const char *
2515SwigPyObject_GetDesc(PyObject *self)

Callers 1

SWIG_Python_MustGetPtrFunction · 0.85

Calls 1

SWIG_Python_AddErrMesgFunction · 0.85

Tested by

no test coverage detected