diff options
author | Damien George <damien.p.george@gmail.com> | 2016-09-28 10:55:23 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-28 10:55:23 +1000 |
commit | dd4135aeaf0669b8c61daf2a1f810eec12bf1336 (patch) | |
tree | d8353110814a0815b2a0972826623015cb043c42 /py/objrange.c | |
parent | 0c595fa0947c837e837b495aecd0ae04a4b64d2f (diff) | |
download | micropython-dd4135aeaf0669b8c61daf2a1f810eec12bf1336.tar.gz micropython-dd4135aeaf0669b8c61daf2a1f810eec12bf1336.zip |
py/objset: Use mp_check_self() to check args of set/frozenset methods.
Following how other objects work, set/frozenset methods should use the
mp_check_self() macro to check the type of the self argument, because in
most cases this check can be a null operation.
Saves about 100-180 bytes of code for builds with set and frozenset
enabled.
Diffstat (limited to 'py/objrange.c')
0 files changed, 0 insertions, 0 deletions