From 1463c1fa82e930edfef9df9b70c6b8c12cdcb1c1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 25 Apr 2014 23:52:57 +0100 Subject: py: Add MICROPY_ENABLE_DOC_STRING, disabled by default. Also add a few STATIC's to some compile functions that should have them. Addresses issue #521. --- 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 4c3e0706a..b669128ea 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -89,6 +89,11 @@ typedef long long mp_longint_impl_t; #define MICROPY_ENABLE_SOURCE_LINE (0) #endif +// Whether to include doc strings (increases RAM usage) +#ifndef MICROPY_ENABLE_DOC_STRING +#define MICROPY_ENABLE_DOC_STRING (0) +#endif + // Float and complex implementation #define MICROPY_FLOAT_IMPL_NONE (0) #define MICROPY_FLOAT_IMPL_FLOAT (1) -- cgit v1.2.3