summaryrefslogtreecommitdiffstatshomepage
path: root/py/mpconfig.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-03-28 01:14:44 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-04-03 00:03:07 +0300
commit2039757b854b656a41c9e041776ccd5dad8ec5fe (patch)
tree2450c1e129651c27cb5579bb26a288a841c70c70 /py/mpconfig.h
parentf88eec0de24277e8713ebdfe34e1e7b852a25731 (diff)
downloadmicropython-2039757b854b656a41c9e041776ccd5dad8ec5fe.tar.gz
micropython-2039757b854b656a41c9e041776ccd5dad8ec5fe.zip
vm: Initial support for calling bytecode functions w/o C stack ("stackless").
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 ae5e776256..94e2737de0 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -125,6 +125,11 @@
#define MICROPY_QSTR_BYTES_IN_LEN (1)
#endif
+// Avoid using C stack when making Python function calls.
+#ifndef MICROPY_STACKLESS
+#define MICROPY_STACKLESS (0)
+#endif
+
/*****************************************************************************/
/* Micro Python emitters */