summaryrefslogtreecommitdiffstatshomepage
path: root/py/emit.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-24 14:32:40 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-24 14:32:40 -0800
commitceb87835fe24873cd8b2f7d1d3d88cb6144e33b8 (patch)
treebe3e0b2da874ab98f98a4fd756ff8534f74b5b6d /py/emit.h
parent4461970da027ce16b41189f75257239f46a3b087 (diff)
parentf46d87a30d09bfa904c2b9769ea52271abb86b0c (diff)
downloadmicropython-ceb87835fe24873cd8b2f7d1d3d88cb6144e33b8.tar.gz
micropython-ceb87835fe24873cd8b2f7d1d3d88cb6144e33b8.zip
Merge pull request #217 from pfalcon/free-emitter
Add support for freeing code emitter objects at the end of compilation.
Diffstat (limited to 'py/emit.h')
-rw-r--r--py/emit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/emit.h b/py/emit.h
index 309d4740b9..c4d38530cd 100644
--- a/py/emit.h
+++ b/py/emit.h
@@ -17,6 +17,8 @@ typedef enum {
typedef struct _emit_t emit_t;
typedef struct _emit_method_table_t {
+ void (*free)(emit_t *emit);
+
void (*set_native_types)(emit_t *emit, bool do_native_types);
void (*start_pass)(emit_t *emit, pass_kind_t pass, scope_t *scope);
void (*end_pass)(emit_t *emit);