From fd40a9c38e7e15850b8802fb9845dc4ea423f53b Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 1 Jan 2015 22:04:46 +0000 Subject: py: Make GC's STACK_SIZE definition a proper MICROPY_ config variable. --- py/mpconfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'py/mpconfig.h') diff --git a/py/mpconfig.h b/py/mpconfig.h index bbc791c0b..e3270bd13 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) -- cgit v1.2.3