diff options
author | Damien George <damien.p.george@gmail.com> | 2015-01-09 20:12:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-01-09 20:12:54 +0000 |
commit | 89deec0bab0c6d960e75fcda1c9cc767b8a49661 (patch) | |
tree | 9feabca102666f86b614d924eafe0bd272165efe /py/mpconfig.h | |
parent | 4a5895c4eba98f9c5e698d48f58cbf3682ed0db1 (diff) | |
download | micropython-89deec0bab0c6d960e75fcda1c9cc767b8a49661.tar.gz micropython-89deec0bab0c6d960e75fcda1c9cc767b8a49661.zip |
py: Add MICROPY_PY_MICROPYTHON_MEM_INFO to enable mem-info funcs.
This allows to enable mem-info functions in micropython module, even if
MICROPY_MEM_STATS is not enabled. In this case, you get mem_info and
qstr_info but not mem_{total,current,peak}.
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 57f54a590e..bf1a8bda52 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -369,6 +369,11 @@ typedef double mp_float_t; #define MICROPY_PY___FILE__ (1) #endif +// Whether to provide mem-info related functions in micropython module +#ifndef MICROPY_PY_MICROPYTHON_MEM_INFO +#define MICROPY_PY_MICROPYTHON_MEM_INFO (0) +#endif + // Whether to provide "array" module. Note that large chunk of the // underlying code is shared with "bytearray" builtin type, so to // get real savings, it should be disabled too. |