summaryrefslogtreecommitdiff
path: root/py/runtime0.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-08-11 09:42:39 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2017-08-11 09:43:07 +0300
commitbfc2092dc55d1faab4a6d7e832005afd61d25c3c (patch)
tree37b1449bd001755fc37fe3d23232658b0c82eca8 /py/runtime0.h
parent7d4a2f773cc6ce24a91e2d210378188f3371e8a6 (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/runtime0.h')
-rw-r--r--py/runtime0.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/runtime0.h b/py/runtime0.h
index d22c2fabe..703c950f2 100644
--- a/py/runtime0.h
+++ b/py/runtime0.h
@@ -50,6 +50,7 @@ typedef enum {
MP_UNARY_OP_NEGATIVE,
MP_UNARY_OP_INVERT,
MP_UNARY_OP_NOT,
+ MP_UNARY_OP_SIZEOF, // for sys.getsizeof()
} mp_unary_op_t;
typedef enum {