diff options
author | Damien George <damien.p.george@gmail.com> | 2019-03-09 10:59:25 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-03-14 12:22:25 +1100 |
commit | d9d92f27d7cce287850d971abf3104d2230092fa (patch) | |
tree | e69b50bfa4b143f0a6e4efe76fc1d9834e7356fc /py/emitnative.c | |
parent | 0e4c24ec08c19773b26a662abb133c05b474b1fa (diff) | |
download | micropython-d9d92f27d7cce287850d971abf3104d2230092fa.tar.gz micropython-d9d92f27d7cce287850d971abf3104d2230092fa.zip |
py/compile: Add support to select the native emitter at runtime.
Diffstat (limited to 'py/emitnative.c')
-rw-r--r-- | py/emitnative.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/emitnative.c b/py/emitnative.c index aa5ec4935d..da986dc5d9 100644 --- a/py/emitnative.c +++ b/py/emitnative.c @@ -2727,6 +2727,11 @@ STATIC void emit_native_end_except_handler(emit_t *emit) { } const emit_method_table_t EXPORT_FUN(method_table) = { + #if MICROPY_DYNAMIC_COMPILER + EXPORT_FUN(new), + EXPORT_FUN(free), + #endif + emit_native_start_pass, emit_native_end_pass, emit_native_last_emit_was_return_value, |