Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
cpyrt.h File Reference
#include "Python.h"
#include <sys/types.h>
#include "cppjit_interop.h"
#include "cpyrt/CommonDefs.h"
Include dependency graph for cpyrt.h:
This graph shows which files directly or indirectly include this file:

Namespaces

namespace  cppjit
 
namespace  cppjit::cpyrt
 

Macros

#define cpyrt_PyObject_Call   PyObject_Vectorcall
 
#define CPYRT_PYTYPE_TAIL
 
#define CPYRT_TP_ITERITEM
 
#define CPYRT_TP_VERSIONS_USED
 
#define CPYRT_TP_WATCHED
 
#define Py_RETURN_FALSE   return Py_INCREF(Py_False), Py_False
 
#define Py_RETURN_NONE   return Py_INCREF(Py_None), Py_None
 
#define Py_RETURN_TRUE   return Py_INCREF(Py_True), Py_True
 
#define PY_SSIZE_T_CLEAN
 
#define PY_SSIZE_T_FORMAT   "%zd"
 
#define Py_TPFLAGS_HAVE_VECTORCALL   _Py_TPFLAGS_HAVE_VECTORCALL
 

Typedefs

typedef PyObject *const * cpyrt_PyArgs_t
 

Functions

static PyObject * cpyrt_GetWeakRef (PyObject *ref)
 
static void cpyrt_PyArgs_DEL (cpyrt_PyArgs_t args)
 
static PyObject * cpyrt_PyArgs_GET_ITEM (cpyrt_PyArgs_t args, Py_ssize_t i)
 
static Py_ssize_t cpyrt_PyArgs_GET_SIZE (cpyrt_PyArgs_t, size_t nargsf)
 
static cpyrt_PyArgs_t cpyrt_PyArgs_New (Py_ssize_t N)
 
static PyObject * cpyrt_PyArgs_SET_ITEM (cpyrt_PyArgs_t args, Py_ssize_t i, PyObject *item)
 
static const char * cpyrt_PyText_AsStringAndSize (PyObject *pystr, Py_ssize_t *size)
 
PyObject * cpyrt_tp_call (PyObject *cb, cpyrt_PyArgs_t args, size_t nargsf, PyObject *kwds)
 

Macro Definition Documentation

◆ cpyrt_PyObject_Call

#define cpyrt_PyObject_Call   PyObject_Vectorcall

Definition at line 99 of file cpyrt.h.

◆ CPYRT_PYTYPE_TAIL

#define CPYRT_PYTYPE_TAIL
Value:
CPYRT_TP_WATCHED \
CPYRT_TP_VERSIONS_USED \
CPYRT_TP_ITERITEM

Definition at line 159 of file cpyrt.h.

◆ CPYRT_TP_ITERITEM

#define CPYRT_TP_ITERITEM

Definition at line 156 of file cpyrt.h.

◆ CPYRT_TP_VERSIONS_USED

#define CPYRT_TP_VERSIONS_USED

Definition at line 150 of file cpyrt.h.

◆ CPYRT_TP_WATCHED

#define CPYRT_TP_WATCHED

Definition at line 144 of file cpyrt.h.

◆ Py_RETURN_FALSE

#define Py_RETURN_FALSE   return Py_INCREF(Py_False), Py_False

Definition at line 77 of file cpyrt.h.

◆ Py_RETURN_NONE

#define Py_RETURN_NONE   return Py_INCREF(Py_None), Py_None

Definition at line 69 of file cpyrt.h.

◆ Py_RETURN_TRUE

#define Py_RETURN_TRUE   return Py_INCREF(Py_True), Py_True

Definition at line 73 of file cpyrt.h.

◆ PY_SSIZE_T_CLEAN

#define PY_SSIZE_T_CLEAN

Definition at line 35 of file cpyrt.h.

◆ PY_SSIZE_T_FORMAT

#define PY_SSIZE_T_FORMAT   "%zd"

Definition at line 65 of file cpyrt.h.

◆ Py_TPFLAGS_HAVE_VECTORCALL

#define Py_TPFLAGS_HAVE_VECTORCALL   _Py_TPFLAGS_HAVE_VECTORCALL

Definition at line 108 of file cpyrt.h.

Typedef Documentation

◆ cpyrt_PyArgs_t

typedef PyObject* const* cpyrt_PyArgs_t

Definition at line 81 of file cpyrt.h.

Function Documentation

◆ cpyrt_GetWeakRef()

static PyObject * cpyrt_GetWeakRef ( PyObject * ref)
inlinestatic

Definition at line 113 of file cpyrt.h.

◆ cpyrt_PyArgs_DEL()

static void cpyrt_PyArgs_DEL ( cpyrt_PyArgs_t args)
inlinestatic

Definition at line 96 of file cpyrt.h.

◆ cpyrt_PyArgs_GET_ITEM()

static PyObject * cpyrt_PyArgs_GET_ITEM ( cpyrt_PyArgs_t args,
Py_ssize_t i )
inlinestatic

Definition at line 82 of file cpyrt.h.

◆ cpyrt_PyArgs_GET_SIZE()

static Py_ssize_t cpyrt_PyArgs_GET_SIZE ( cpyrt_PyArgs_t ,
size_t nargsf )
inlinestatic

Definition at line 90 of file cpyrt.h.

◆ cpyrt_PyArgs_New()

static cpyrt_PyArgs_t cpyrt_PyArgs_New ( Py_ssize_t N)
inlinestatic

Definition at line 93 of file cpyrt.h.

◆ cpyrt_PyArgs_SET_ITEM()

static PyObject * cpyrt_PyArgs_SET_ITEM ( cpyrt_PyArgs_t args,
Py_ssize_t i,
PyObject * item )
inlinestatic

Definition at line 86 of file cpyrt.h.

◆ cpyrt_PyText_AsStringAndSize()

static const char * cpyrt_PyText_AsStringAndSize ( PyObject * pystr,
Py_ssize_t * size )
inlinestatic

Definition at line 44 of file cpyrt.h.

◆ cpyrt_tp_call()

PyObject * cpyrt_tp_call ( PyObject * cb,
cpyrt_PyArgs_t args,
size_t nargsf,
PyObject * kwds )
inline

Definition at line 100 of file cpyrt.h.