summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-16 10:56:39 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-16 10:56:39 -0800
commiteea2eb1bb74c59e80deb14872a0aa10d6a69a304 (patch)
tree77c4ec4cbede304afffe0f7a86f8e9886e8b900d /py/mpconfig.h
parenta671f891ddb42496accb889e19a0eb14b50caba2 (diff)
parentdcac88095b3a67e75204f6b245d62d481ce2d906 (diff)
downloadmicropython-eea2eb1bb74c59e80deb14872a0aa10d6a69a304.tar.gz
micropython-eea2eb1bb74c59e80deb14872a0aa10d6a69a304.zip
Merge pull request #180 from pfalcon/examples-improve
Improve compatibility of examples with CPython (+ interp compatibility too)
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r--py/mpconfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 5d8c57692e..505b1b2d18 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -85,6 +85,14 @@ typedef long long mp_longint_impl_t;
#define MICROPY_ENABLE_SLICE (1)
#endif
+// Enable features which improve CPython compatibility
+// but may lead to more code size/memory usage.
+// TODO: Originally intended as generic category to not
+// add bunch of once-off options. May need refactoring later
+#ifndef MICROPY_CPYTHON_COMPAT
+#define MICROPY_CPYTHON_COMPAT (1)
+#endif
+
/*****************************************************************************/
/* Miscellaneous settings */