py/mpconfig.h: Enable MICROPY_PY_SYS_EXIT by default.

sys.exit() is an important function to terminate a program. In particular,
the testsuite relies on it to skip tests (i.e. any other functionality may
be disabled, but sys.exit() is required to at least report that properly).
This commit is contained in:
Paul Sokolovsky 2016-12-14 21:10:22 +03:00
parent ee7ad7e8be
commit 403c93053e
1 changed files with 1 additions and 1 deletions

View File

@ -867,7 +867,7 @@ typedef double mp_float_t;
// Whether to provide "sys.exit" function
#ifndef MICROPY_PY_SYS_EXIT
#define MICROPY_PY_SYS_EXIT (0)
#define MICROPY_PY_SYS_EXIT (1)
#endif
// Whether to provide sys.{stdin,stdout,stderr} objects