contrib/fuzz/pyutil.h
author Pulkit Goyal <7895pulkit@gmail.com>
Tue, 08 Dec 2020 16:41:13 +0530
changeset 46242 cb12658bf0e1
parent 43859 8766728dbce6
permissions -rw-r--r--
scmutil: improve documentation of writereporequirements() This makes it easier to understand the difference between `writerequires()` and `writereporequirements()`. Differential Revision: https://phab.mercurial-scm.org/D9568

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