We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87bc8e2 commit d7337f2Copy full SHA for d7337f2
2 files changed
minimal/main.c
@@ -60,7 +60,17 @@ int main(int argc, char **argv) {
60
gc_init(heap, heap + sizeof(heap));
61
#endif
62
mp_init();
63
+ #if MICROPY_REPL_EVENT_DRIVEN
64
+ pyexec_friendly_repl_init();
65
+ for (;;) {
66
+ int c = stdin_rx_chr();
67
+ if (pyexec_friendly_repl_process_char(c)) {
68
+ break;
69
+ }
70
71
+ #else
72
pyexec_friendly_repl();
73
+ #endif
74
//do_str("print('hello world!', list(x+1 for x in range(10)), end='eol\\n')");
75
mp_deinit();
76
return 0;
minimal/mpconfigport.h
@@ -11,6 +11,7 @@
11
#define MICROPY_MEM_STATS (0)
12
#define MICROPY_DEBUG_PRINTERS (0)
13
#define MICROPY_ENABLE_GC (1)
14
+#define MICROPY_REPL_EVENT_DRIVEN (0)
15
#define MICROPY_HELPER_REPL (1)
16
#define MICROPY_HELPER_LEXER_UNIX (0)
17
#define MICROPY_ENABLE_SOURCE_LINE (0)
0 commit comments