diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-01 22:04:46 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-01 22:04:46 +0000 |
commit | fd40a9c38e7e15850b8802fb9845dc4ea423f53b (patch) | |
tree | 8198a6f42077515e08855446f4ae42559aa5f725 /py/mpconfig.h | |
parent | 872a82970d0caa97ed5e7751d6d7b6a29b8d4fce (diff) | |
download | micropython-fd40a9c38e7e15850b8802fb9845dc4ea423f53b.tar.gz micropython-fd40a9c38e7e15850b8802fb9845dc4ea423f53b.zip |
py: Make GC's STACK_SIZE definition a proper MICROPY_ config variable.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index bbc791c0b7..e3270bd13f 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -51,6 +51,11 @@ /*****************************************************************************/ /* Memory allocation policy */ +// Number of words allocated (in BSS) to the GC stack (minimum is 1) +#ifndef MICROPY_ALLOC_GC_STACK_SIZE +#define MICROPY_ALLOC_GC_STACK_SIZE (64) +#endif + // Initial amount for lexer indentation level #ifndef MICROPY_ALLOC_LEXER_INDENT_INIT #define MICROPY_ALLOC_LEXER_INDENT_INIT (10) |