py/mpconfig: Make configuration of dupterm object reusable.

This commit is contained in:
Paul Sokolovsky
2016-01-01 13:15:18 +02:00
parent ddea7cb702
commit 9bbfd5efd4
2 changed files with 7 additions and 3 deletions

View File

@@ -819,6 +819,12 @@ typedef double mp_float_t;
#define MICROPY_PORT_ROOT_POINTERS
#endif
#if MICROPY_PY_OS_DUPTERM
#define MP_ROOT_PTR_DUPTERM_OBJ mp_obj_t term_obj
#else
#define MP_ROOT_PTR_DUPTERM_OBJ
#endif
/*****************************************************************************/
/* Miscellaneous settings */