summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-03 01:57:50 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-03 01:58:25 +0200
commitb4eccfd02dc8d7c39a6546bc7b051676140d341e (patch)
treeece13db7986aa7275d8635e6b130c6171558ab91 /py
parent30d0cf48851422b5c251308cad0e82af9d509291 (diff)
downloadmicropython-b4eccfd02dc8d7c39a6546bc7b051676140d341e.tar.gz
micropython-b4eccfd02dc8d7c39a6546bc7b051676140d341e.zip
py/mpconfig: Actually allow to override MICROPY_BYTES_PER_GC_BLOCK.
Diffstat (limited to 'py')
-rw-r--r--py/mpconfig.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h
index 922f865e2f..ef078d3b72 100644
--- a/py/mpconfig.h
+++ b/py/mpconfig.h
@@ -98,7 +98,9 @@
// Number of bytes in memory allocation/GC block. Any size allocated will be
// rounded up to be multiples of this.
+#ifndef MICROPY_BYTES_PER_GC_BLOCK
#define MICROPY_BYTES_PER_GC_BLOCK (4 * BYTES_PER_WORD)
+#endif
// Number of words allocated (in BSS) to the GC stack (minimum is 1)
#ifndef MICROPY_ALLOC_GC_STACK_SIZE