10000 GH-98831: Move assorted macros from ceval.h to a new header by gvanrossum · Pull Request #101116 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-98831: Move assorted macros from ceval.h to a new header #101116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Tweak dummy stuff a bit more
  • Loading branch information
gvanrossum committed Jan 18, 2023
commit b1e58d4715ddc1dfa1b13818e4961353830000eb
5 changes: 2 additions & 3 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
#include "setobject.h"
#include "structmember.h" // struct PyMemberDef, T_OFFSET_EX

#define USE_COMPUTED_GOTOS 0
#include "ceval_macros.h"

/* Flow control macros */
#define DEOPT_IF(cond, instname) ((void)0)
#define ERROR_IF(cond, labelname) ((void)0)
#define GO_TO_INSTRUCTION(instname) ((void)0)
#define DISPATCH_SAME_OPARG() ((void)0)
#define PREDICT(opname) ((void)0)

#define inst(name, ...) case name:
Expand All @@ -49,8 +49,6 @@
#define super(name) static int SUPER_##name
#define family(name, ...) static int family_##name

static void *opcode_targets[256];

// Dummy variables for stack effects.
static PyObject *value, *value1, *value2, *left, *right, *res, *sum, *prod, *sub;
static PyObject *container, *start, *stop, *v, *lhs, *rhs;
Expand Down Expand Up @@ -3309,6 +3307,7 @@ dummy_func(
// END BYTECODES //

}
dispatch_opcode:
error:
exception_unwind:
exit_unwind:
Expand Down
0