summaryrefslogtreecommitdiff
path: root/py/compile.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/compile.h')
-rw-r--r--py/compile.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/py/compile.h b/py/compile.h
index 552d36fa5..d4a17b7a8 100644
--- a/py/compile.h
+++ b/py/compile.h
@@ -1 +1,9 @@
-mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, bool is_repl);
+enum {
+ MP_EMIT_OPT_NONE,
+ MP_EMIT_OPT_BYTE_CODE,
+ MP_EMIT_OPT_NATIVE_PYTHON,
+ MP_EMIT_OPT_VIPER,
+ MP_EMIT_OPT_ASM_THUMB,
+};
+
+mp_obj_t mp_compile(mp_parse_node_t pn, qstr source_file, uint emit_opt, bool is_repl);