MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsPyString

Function IsPyString

trinity/PyVerCompat.h:8–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7
8inline bool IsPyString( PyObject* pyObj )
9{
10#if PY_MAJOR_VERSION == 2
11 return PyString_Check( pyObj );
12#else
13 return PyUnicode_Check( pyObj );
14#endif
15}
16
17inline bool IsPyInt( PyObject* pyObj )
18{

Callers 4

PyBreakInDebuggerFunction · 0.85
PyAppendVerticesMethod · 0.85
PySetVerticesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected