summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-03-25 09:25:41 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-03-25 09:25:41 +0200
commit3d598256df0fa3ebe7d0eedd23222ba52571af7e (patch)
treed1eb8aec3d95b73ec4d21dfa434e252ddddd2910 /tests
parentec1b1cf834462635be578d1f4a3da9dafca7ff8f (diff)
downloadmicropython-3d598256df0fa3ebe7d0eedd23222ba52571af7e.tar.gz
micropython-3d598256df0fa3ebe7d0eedd23222ba52571af7e.zip
py: Cast mp_obj_t to concrete types explicitly.
mp_obj_t internal representation doesn't have to be a pointer to object, it can be anything. There's also a support for back-conversion in the form of MP_OBJ_UNCAST. This is kind of optimization/status quo preserver to minimize patching the existing code and avoid doing potentially expensive MP_OBJ_CAST over and over. But then one may imagine implementations where MP_OBJ_UNCAST is very expensive. But such implementations are unlikely interesting in practice.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions