contrib/fuzz/pyutil.h
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 13 Jan 2020 11:11:20 -0800
changeset 44094 521b4e3a42d7
parent 43859 8766728dbce6
permissions -rw-r--r--
rebase: extract a variable for a repeated `repo[p1]` I'll add another use site in the next patch. Differential Revision: https://phab.mercurial-scm.org/D7896

#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 */