summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/pyexec.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/pyexec.h')
-rw-r--r--stmhal/pyexec.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/stmhal/pyexec.h b/stmhal/pyexec.h
index cad15af6fe..d191a2fc4e 100644
--- a/stmhal/pyexec.h
+++ b/stmhal/pyexec.h
@@ -1,5 +1,12 @@
-void pyexec_raw_repl(void);
-void pyexec_repl(void);
+typedef enum {
+ PYEXEC_MODE_RAW_REPL,
+ PYEXEC_MODE_FRIENDLY_REPL,
+} pyexec_mode_kind_t;
+
+extern pyexec_mode_kind_t pyexec_mode_kind;
+
+int pyexec_raw_repl(void);
+int pyexec_friendly_repl(void);
bool pyexec_file(const char *filename);
MP_DECLARE_CONST_FUN_OBJ(pyb_set_repl_info_obj);