summaryrefslogtreecommitdiffstatshomepage
path: root/py/emit.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-24 16:20:11 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-01-24 16:31:20 +0200
commitf46d87a30d09bfa904c2b9769ea52271abb86b0c (patch)
treef5fb8aa053f3e3e00843b990e0d49da56d1f2dbc /py/emit.h
parent2b2cb7b7f4f467b67082f79053118df78f48e66e (diff)
downloadmicropython-f46d87a30d09bfa904c2b9769ea52271abb86b0c.tar.gz
micropython-f46d87a30d09bfa904c2b9769ea52271abb86b0c.zip
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);