mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
This removes the requirement to run a python script to preprocess the input files before compiling pycdas/pycdc.
14 lines
281 B
C
14 lines
281 B
C
#include "bytecode.h"
|
|
|
|
#define BEGIN_MAP(maj, min) \
|
|
int python_##maj##_##min##_map(int id) \
|
|
{ \
|
|
switch (id) {
|
|
|
|
#define MAP_OP(op, name) \
|
|
case op: return Pyc::name;
|
|
|
|
#define END_MAP() \
|
|
default: return Pyc::PYC_INVALID_OPCODE; \
|
|
} \
|
|
}
|