summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-13 12:52:39 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-13 12:52:39 +0100
commit640e7e4779d5d6b5e53fa305e5fe824da7783090 (patch)
treec299b3caf77aca8923a6fdb5554dd5a27ffc4c4e /py/mpconfig.h
parentf95c68e53638aa363797595b0d618bbe08c56bb3 (diff)
parent4165cd1c0cfc4eabf446be504787090be84a421b (diff)
downloadmicropython-640e7e4779d5d6b5e53fa305e5fe824da7783090.tar.gz
micropython-640e7e4779d5d6b5e53fa305e5fe824da7783090.zip
Merge pull request #476 from pfalcon/static-sys
Convert sys module to static allocation
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 2c118b4bba..cbe18b409b 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -120,6 +120,15 @@ typedef double mp_float_t;
#define MICROPY_ENABLE_MOD_STRUCT (1)
#endif
+// Whether to provide "sys" module
+#ifndef MICROPY_ENABLE_MOD_SYS
+#define MICROPY_ENABLE_MOD_SYS (1)
+#endif
+
+#ifndef MICROPY_MOD_SYS_STDFILES
+#define MICROPY_MOD_SYS_STDFILES (0)
+#endif
+
// Whether to support slice object and correspondingly
// slice subscript operators
#ifndef MICROPY_ENABLE_SLICE