summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-14 21:10:22 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-12-14 21:22:05 +0300
commit403c93053e6a9897ad397ef325e451c4cc671ce1 (patch)
tree5c018a312925f33b41012162e9b58791cddd99a8
parentee7ad7e8be5c866410eb5e690da33f8c18e20349 (diff)
downloadmicropython-403c93053e6a9897ad397ef325e451c4cc671ce1.tar.gz
micropython-403c93053e6a9897ad397ef325e451c4cc671ce1.zip
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).
-rw-r--r--py/mpconfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 3612e6bcb3..ea90ec9841 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -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