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

Function IsPyInt

trinity/PyVerCompat.h:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17inline bool IsPyInt( PyObject* pyObj )
18{
19#if PY_MAJOR_VERSION == 2
20 return PyInt_Check( pyObj );
21#else
22 return PyLong_Check( pyObj );
23#endif
24}
25
26inline PyObject* ToPyBytes( const char* str, size_t size )
27{

Callers 2

PyRegisterVariableFunction · 0.85
PyAppendTrianglesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected