windows: Make keyboard_interrupt_obj available, it's standard feature.
This commit is contained in:
parent
3c2b377711
commit
5efd3f0dca
@ -401,10 +401,8 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
mp_init();
|
mp_init();
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
// create keyboard interrupt object
|
// create keyboard interrupt object
|
||||||
MP_STATE_VM(keyboard_interrupt_obj) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
|
MP_STATE_VM(keyboard_interrupt_obj) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
|
||||||
#endif
|
|
||||||
|
|
||||||
char *home = getenv("HOME");
|
char *home = getenv("HOME");
|
||||||
char *path = getenv("MICROPYPATH");
|
char *path = getenv("MICROPYPATH");
|
||||||
|
@ -156,7 +156,8 @@ extern const struct _mp_obj_module_t mp_module_time;
|
|||||||
|
|
||||||
#if MICROPY_USE_READLINE == 1
|
#if MICROPY_USE_READLINE == 1
|
||||||
#define MICROPY_PORT_ROOT_POINTERS \
|
#define MICROPY_PORT_ROOT_POINTERS \
|
||||||
char *readline_hist[50];
|
char *readline_hist[50]; \
|
||||||
|
mp_obj_t keyboard_interrupt_obj;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MP_STATE_PORT MP_STATE_VM
|
#define MP_STATE_PORT MP_STATE_VM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user