This kludge is from 1992. Any C99 compiler is going to be able to handle the
ceval dispatch switch.
Anyway, we have much bigger switches than the ceval dispatch one around. (See,
e.g., Objects/unicodetype_db.h.)
#include <ctype.h>
-/* Turn this on if your compiler chokes on the big switch: */
-/* #define CASE_TOO_BIG 1 */
-
#ifdef Py_DEBUG
/* For debugging the interpreter: */
#define LLTRACE 1 /* Low-level trace feature */
DISPATCH();
}
-#ifdef CASE_TOO_BIG
- default: switch (opcode) {
-#endif
TARGET(RAISE_VARARGS) {
PyObject *cause = NULL, *exc = NULL;
switch (oparg) {
PyErr_SetString(PyExc_SystemError, "unknown opcode");
goto error;
-#ifdef CASE_TOO_BIG
- }
-#endif
-
} /* switch */
/* This should never be reached. Every opcode should end with DISPATCH()