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

Function SwigPyObject_New

swig/python/export_wrap.cpp:1978–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1976}
1977
1978SWIGRUNTIME PyObject *
1979SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
1980{
1981 SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
1982 if (sobj) {
1983 sobj->ptr = ptr;
1984 sobj->ty = ty;
1985 sobj->own = own;
1986 sobj->next = 0;
1987 }
1988 return (PyObject *)sobj;
1989}
1990
1991/* -----------------------------------------------------------------------------
1992 * Implements a simple Swig Packed type, and use it instead of string

Callers 2

SwigPyObject_deallocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected