summaryrefslogtreecommitdiffstatshomepage
path: root/py/objint.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-09-28 10:55:23 +1000
committerDamien George <damien.p.george@gmail.com>2016-09-28 10:55:23 +1000
commitdd4135aeaf0669b8c61daf2a1f810eec12bf1336 (patch)
treed8353110814a0815b2a0972826623015cb043c42 /py/objint.c
parent0c595fa0947c837e837b495aecd0ae04a4b64d2f (diff)
downloadmicropython-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/objint.c')
0 files changed, 0 insertions, 0 deletions