diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-08-11 09:42:39 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-08-11 09:43:07 +0300 |
commit | bfc2092dc55d1faab4a6d7e832005afd61d25c3c (patch) | |
tree | 37b1449bd001755fc37fe3d23232658b0c82eca8 /py/mpconfig.h | |
parent | 7d4a2f773cc6ce24a91e2d210378188f3371e8a6 (diff) |
py/modsys: Initial implementation of sys.getsizeof().
Implemented as a new MP_UNARY_OP. This patch adds support lists, dicts and
instances.
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 fb507a503..0e76a1ff5 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -944,6 +944,11 @@ typedef double mp_float_t; #define MICROPY_PY_SYS_EXIT (1) #endif +// Whether to provide "sys.getsizeof" function +#ifndef MICROPY_PY_SYS_GETSIZEOF +#define MICROPY_PY_SYS_GETSIZEOF (0) +#endif + // Whether to provide sys.{stdin,stdout,stderr} objects #ifndef MICROPY_PY_SYS_STDFILES #define MICROPY_PY_SYS_STDFILES (0) |