From 403c93053e6a9897ad397ef325e451c4cc671ce1 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 14 Dec 2016 21:10:22 +0300 Subject: [PATCH] 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). --- py/mpconfig.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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