1#ifndef CPYCPPYY_UTILITY_H
2#define CPYCPPYY_UTILITY_H
24 int flags = METH_VARARGS);
42 const std::vector<std::string>& argtypes, std::ostringstream& code);
85 Py_XDECREF(
e.fType); Py_XDECREF(
e.fValue); Py_XDECREF(
e.fTrace);
86 e.fType =
e.fValue =
e.fTrace = 0;
PyDictEntry *(* dict_lookup_func)(PyDictObject *, PyObject *, long)
unsigned long long ULong64_t
PyCallable * FindBinaryOperator(PyObject *left, PyObject *right, const char *op, Cppyy::TCppScope_t scope=0)
size_t FetchError(std::vector< PyError_t > &)
void ConstructCallbackPreamble(const std::string &retType, const std::vector< std::string > &argtypes, std::ostringstream &code)
void ConstructCallbackReturn(const std::string &retType, int nArgs, std::ostringstream &code)
std::string MapOperatorName(const std::string &name, bool bTakesParames)
Py_ssize_t GetBuffer(PyObject *pyobject, char tc, int size, void *&buf, bool check=true)
std::string ConstructTemplateArgs(PyObject *pyname, PyObject *tpArgs, PyObject *args=nullptr, ArgPreference=kNone, int argoff=0, int *pcnt=nullptr)
PyCallable * FindUnaryOperator(PyObject *pyclass, const char *op)
void SetDetailedException(std::vector< PyError_t > &errors, PyObject *topmsg, PyObject *defexc)
bool InitProxy(PyObject *module, PyTypeObject *pytype, const char *name)
bool AddToClass(PyObject *pyclass, const char *label, PyCFunction cfunc, int flags=METH_VARARGS)
Py_ssize_t ArraySize(const std::string &name)
const std::string Compound(const std::string &name)
std::string ClassName(PyObject *pyobj)
PyObject * PyErr_Occurred_WithGIL()
unsigned long PyLongOrInt_AsULong(PyObject *pyobject)
dict_lookup_func gDictLookupOrg
ULong64_t PyLongOrInt_AsULong64(PyObject *pyobject)
static void Clear(PyError_t &e)