-
Notifications
You must be signed in to change notification settings - Fork 679
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert opcode maps to C++ source with macros.
This removes the requirement to run a python script to preprocess the input files before compiling pycdas/pycdc.
- Loading branch information
Showing
58 changed files
with
3,013 additions
and
2,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; \ | ||
} \ | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.