summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-25 23:52:57 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-25 23:52:57 +0100
commit1463c1fa82e930edfef9df9b70c6b8c12cdcb1c1 (patch)
treee8a578738b3a90c917e7f35ccce74eba1c50a706 /py/mpconfig.h
parentc492cf1f442653019b287bf0e8bd0c43f2abd837 (diff)
downloadmicropython-1463c1fa82e930edfef9df9b70c6b8c12cdcb1c1.tar.gz
micropython-1463c1fa82e930edfef9df9b70c6b8c12cdcb1c1.zip
py: Add MICROPY_ENABLE_DOC_STRING, disabled by default.
Also add a few STATIC's to some compile functions that should have them. Addresses issue #521.
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 4c3e0706a7..b669128ea0 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -89,6 +89,11 @@ typedef long long mp_longint_impl_t;
#define MICROPY_ENABLE_SOURCE_LINE (0)
#endif
+// Whether to include doc strings (increases RAM usage)
+#ifndef MICROPY_ENABLE_DOC_STRING
+#define MICROPY_ENABLE_DOC_STRING (0)
+#endif
+
// Float and complex implementation
#define MICROPY_FLOAT_IMPL_NONE (0)
#define MICROPY_FLOAT_IMPL_FLOAT (1)