mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-24 00:45:38 +00:00
3826a61eae
Add helpers to wrap generated code with #if/#endif lines. A later patch wants to use QAPIGen for generating C snippets rather than full C files with copyright headers etc. Splice in class QAPIGenCCode between QAPIGen and QAPIGenC. Add a 'with' statement context manager that will be used to wrap generator visitor methods. The manager will check if code was generated before adding #if/#endif lines on QAPIGenCSnippet objects. Used in the following patches. Backports commit ded9fc28b5a07213f3e5e8ac7ea0494b85813de1 from qemu |
||
---|---|---|
.. | ||
__init__.py | ||
common.py | ||
events.py | ||
types.py | ||
visit.py |