MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / _Py_SET_SIZE

Function _Py_SET_SIZE

include/pyshim.hh:115–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 */
114#ifndef Py_SET_SIZE
115static inline void _Py_SET_SIZE(PyVarObject *ob, Py_ssize_t size) {
116 ob->ob_size = size;
117}
118#define Py_SET_SIZE(ob, size) _Py_SET_SIZE((PyVarObject *)(ob), size)
119#endif
120

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected