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

Function SWIG_AddCast

src/MeCab/MeCab_wrap.cpp:346–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
345# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
346SWIGINTERNINLINE int SWIG_AddCast(int r) {
347 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
348}
349SWIGINTERNINLINE int SWIG_CheckState(int r) {
350 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
351}

Callers 5

SWIG_AsVal_doubleFunction · 0.85
SWIG_AsVal_longFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected