summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_code.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-08-01 17:05:00 (GMT)
committerGitHub <noreply@github.com>2023-08-01 17:05:00 (GMT)
commit6ef8f8ca88b925685c6af83a9f0a899e565e1e33 (patch)
treef7ac1034b83c6504f6f15139a11bae5922555655 /Include/internal/pycore_code.h
parent49f238e78c36532bcbca7f9cd172703eb4df319b (diff)
downloadcpython-6ef8f8ca88b925685c6af83a9f0a899e565e1e33.zip
cpython-6ef8f8ca88b925685c6af83a9f0a899e565e1e33.tar.gz
cpython-6ef8f8ca88b925685c6af83a9f0a899e565e1e33.tar.bz2
gh-105481: the ENABLE_SPECIALIZATION flag does not need to be generated by the build script, or exposed in opcode.py (#107534)
Diffstat (limited to 'Include/internal/pycore_code.h')
-rw-r--r--Include/internal/pycore_code.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h
index bcdf864..ee1b851 100644
--- a/Include/internal/pycore_code.h
+++ b/Include/internal/pycore_code.h
@@ -229,6 +229,8 @@ extern void _PyLineTable_InitAddressRange(
extern int _PyLineTable_NextAddressRange(PyCodeAddressRange *range);
extern int _PyLineTable_PreviousAddressRange(PyCodeAddressRange *range);
+#define ENABLE_SPECIALIZATION 1
+
/* Specialization functions */
extern void _Py_Specialize_LoadSuperAttr(PyObject *global_super, PyObject *cls,