10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2b377 commit 5efd3f0Copy full SHA for 5efd3f0
unix/main.c
@@ -401,10 +401,8 @@ int main(int argc, char **argv) {
401
402
mp_init();
403
404
- #ifndef _WIN32
405
// create keyboard interrupt object
406
MP_STATE_VM(keyboard_interrupt_obj) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
407
- #endif
408
409
char *home = getenv("HOME");
410
char *path = getenv("MICROPYPATH");
windows/mpconfigport.h
@@ -156,7 +156,8 @@ extern const struct _mp_obj_module_t mp_module_time;
156
157
#if MICROPY_USE_READLINE == 1
158
#define MICROPY_PORT_ROOT_POINTERS \
159
- char *readline_hist[50];
+ char *readline_hist[50]; \
160
+ mp_obj_t keyboard_interrupt_obj;
161
#endif
162
163
#define MP_STATE_PORT MP_STATE_VM
0 commit comments