summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorpohmelie <multisosnooley@gmail.com>2015-12-07 15:35:48 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-07 18:56:25 +0200
commit354e688d8ebf78d34577db4b45388dede4954b8d (patch)
tree9d1a8e55f3f38e025f292f30c4a29fdb0524e8fd /py/mpconfig.h
parentacc208418bb1fd1f37f64cdbddc6be7a8eaeb4b8 (diff)
downloadmicropython-354e688d8ebf78d34577db4b45388dede4954b8d.tar.gz
micropython-354e688d8ebf78d34577db4b45388dede4954b8d.zip
py: Add MICROPY_PY_BUILTINS_MIN_MAX, disable for minimal ports.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 4d81f25d3f..c05f33c453 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -610,6 +610,11 @@ typedef double mp_float_t;
#define MICROPY_PY_BUILTINS_NOTIMPLEMENTED (0)
#endif
+// Whether to support min/max functions
+#ifndef MICROPY_PY_BUILTINS_MIN_MAX
+#define MICROPY_PY_BUILTINS_MIN_MAX (1)
+#endif
+
// Whether to set __file__ for imported modules
#ifndef MICROPY_PY___FILE__
#define MICROPY_PY___FILE__ (1)