contrib/fuzz/pyutil.h
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 17 Sep 2024 16:40:24 +0200
branchstable
changeset 51686 37a079410507
parent 43870 8766728dbce6
permissions -rw-r--r--
rust: bump rust-cpython version to 0.7.2 This version supports Python 3.12 while 0.7.1 did not.

#include <Python.h>

#if PY_MAJOR_VERSION >= 3
#define PYCODETYPE PyObject
#else
#define PYCODETYPE PyCodeObject
#endif

namespace contrib
{

void initpy(const char *cselfpath);
PyObject *pyglobals();

} /* namespace contrib */