Source

hack2 / pypyembed / emb.c

Full commit

#include "Python.h"

void _Py_DECREF(void *arg)
{
  Py_DECREF(arg);
}

void _Py_INCREF(void *arg)
{
  Py_INCREF(arg);
}

int _PyInt_Check(PyObject *arg)
{
  return PyInt_Check(arg);
}

int _PyFloat_Check(PyObject *arg)
{
  return PyFloat_Check(arg);
}

int _PyString_Check(PyObject *arg)
{
  return PyString_Check(arg);
}

PyObject* _Py_GetNone()
{
  Py_INCREF(Py_None);
  return Py_None;
}