MCPcopy Create free account
hub / github.com/cruppstahl/upscaledb / add_const

Function add_const

python/src/python.cc:911–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909};
910
911static void
912add_const(PyObject *dict, const char *name, long value)
913{
914 PyObject *v = PyInt_FromLong(value);
915 if (!v || PyDict_SetItemString(dict, name, v))
916 PyErr_Clear();
917
918 Py_XDECREF(v);
919}
920
921static PyObject *
922strerror(PyObject *self, PyObject *args)

Callers 1

initupscaledbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected