Commit 403c9305 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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).
parent ee7ad7e8
...@@ -867,7 +867,7 @@ typedef double mp_float_t; ...@@ -867,7 +867,7 @@ typedef double mp_float_t;
// Whether to provide "sys.exit" function // Whether to provide "sys.exit" function
#ifndef MICROPY_PY_SYS_EXIT #ifndef MICROPY_PY_SYS_EXIT
#define MICROPY_PY_SYS_EXIT (0) #define MICROPY_PY_SYS_EXIT (1)
#endif #endif
// Whether to provide sys.{stdin,stdout,stderr} objects // Whether to provide sys.{stdin,stdout,stderr} objects
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment