for (Memo *m = t->memo; m != NULL; m = m->next) {
if (m->type == type) {
-#if defined(PY_DEBUG)
+#if defined(Py_DEBUG)
if (0 <= type && type < NSTATISTICS) {
long count = m->mark - p->mark;
// A memoized negative result counts for one.
static PyObject *
clear_memo_stats(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(ignored))
{
-#if defined(PY_DEBUG)
+#if defined(Py_DEBUG)
_PyPegen_clear_memo_statistics();
#endif
Py_RETURN_NONE;
static PyObject *
get_memo_stats(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(ignored))
{
-#if defined(PY_DEBUG)
+#if defined(Py_DEBUG)
return _PyPegen_get_memo_statistics();
#else
Py_RETURN_NONE;
static PyObject *
dump_memo_stats(PyObject *Py_UNUSED(self), PyObject *Py_UNUSED(ignored))
{
-#if defined(PY_DEBUG)
+#if defined(Py_DEBUG)
PyObject *list = _PyPegen_get_memo_statistics();
if (list == NULL) {
return NULL;