MCPcopy Create free account
hub / github.com/chokkan/crfsuite / SWIG_Python_MustGetPtr

Function SWIG_Python_MustGetPtr

swig/python/export_wrap.cpp:2861–2874  ·  view source on GitHub ↗

Convert a pointer value, signal an exception on a type mismatch */

Source from the content-addressed store, hash-verified

2859
2860/* Convert a pointer value, signal an exception on a type mismatch */
2861SWIGRUNTIME void *
2862SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
2863 void *result;
2864 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2865 PyErr_Clear();
2866#if SWIG_POINTER_EXCEPTION
2867 if (flags) {
2868 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2869 SWIG_Python_ArgFail(argnum);
2870 }
2871#endif
2872 }
2873 return result;
2874}
2875
2876SWIGRUNTIME int
2877SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {

Callers

nothing calls this directly

Calls 3

SWIG_Python_TypeErrorFunction · 0.85
SWIG_TypePrettyNameFunction · 0.85
SWIG_Python_ArgFailFunction · 0.85

Tested by

no test coverage detected