chore: directory structure
This commit is contained in:
14
pycdc/bytes/bytecode_map.h
Normal file
14
pycdc/bytes/bytecode_map.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#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; \
|
||||
} \
|
||||
}
|
Reference in New Issue
Block a user