Issue #19722: Added opcode.stack_effect(), which accurately
computes the stack effect of bytecode instructions.
diff --git a/Include/compile.h b/Include/compile.h
index 12d75d3..c6650d7 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -54,6 +54,9 @@
 /* _Py_Mangle is defined in compile.c */
 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name);
 
+#define PY_INVALID_STACK_EFFECT INT_MAX
+PyAPI_FUNC(int) PyCompile_OpcodeStackEffect(int opcode, int oparg);
+
 #ifdef __cplusplus
 }
 #endif