gh-105481: expose opcode metadata via the _opcode module (#106688)

This commit is contained in:
Irit Katriel 2023-07-14 18:41:52 +01:00 committed by GitHub
parent 243fdcb40e
commit 6a70edf24c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 558 additions and 21 deletions

View file

@ -7,9 +7,7 @@
#include "pycore_pymem.h" // _PyMem_IsPtrFreed()
#include "pycore_opcode_utils.h"
#define NEED_OPCODE_METADATA
#include "pycore_opcode_metadata.h" // _PyOpcode_opcode_metadata, _PyOpcode_num_popped/pushed
#undef NEED_OPCODE_METADATA
#include "pycore_opcode_metadata.h" // OPCODE_HAS_ARG, etc
#undef SUCCESS