windows: Make keyboard_interrupt_obj available, it's standard feature.

This commit is contained in:
Paul Sokolovsky 2015-12-18 00:47:03 +02:00
parent 3c2b377711
commit 5efd3f0dca
2 changed files with 2 additions and 3 deletions

View File

@ -401,10 +401,8 @@ int main(int argc, char **argv) {
mp_init();
#ifndef _WIN32
// create keyboard interrupt object
MP_STATE_VM(keyboard_interrupt_obj) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
#endif
char *home = getenv("HOME");
char *path = getenv("MICROPYPATH");

View File

@ -156,7 +156,8 @@ extern const struct _mp_obj_module_t mp_module_time;
#if MICROPY_USE_READLINE == 1
#define MICROPY_PORT_ROOT_POINTERS \
char *readline_hist[50];
char *readline_hist[50]; \
mp_obj_t keyboard_interrupt_obj;
#endif
#define MP_STATE_PORT MP_STATE_VM