mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-101907: Stop using _Py_OPCODE
and _Py_OPARG
macros (GH-101912)
* gh-101907: Removes use of non-standard C++ extension from Include/cpython/code.h * Make cases_generator correct on Windows
This commit is contained in:
parent
c00faf7943
commit
a99eb5cd99
13 changed files with 200 additions and 184 deletions
|
@ -9507,8 +9507,8 @@ super_init_without_args(_PyInterpreterFrame *cframe, PyCodeObject *co,
|
|||
if (_PyInterpreterFrame_LASTI(cframe) >= 0) {
|
||||
// MAKE_CELL and COPY_FREE_VARS have no quickened forms, so no need
|
||||
// to use _PyOpcode_Deopt here:
|
||||
assert(_Py_OPCODE(_PyCode_CODE(co)[0]) == MAKE_CELL ||
|
||||
_Py_OPCODE(_PyCode_CODE(co)[0]) == COPY_FREE_VARS);
|
||||
assert(_PyCode_CODE(co)[0].op.code == MAKE_CELL ||
|
||||
_PyCode_CODE(co)[0].op.code == COPY_FREE_VARS);
|
||||
assert(PyCell_Check(firstarg));
|
||||
firstarg = PyCell_GET(firstarg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue