diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2018-08-26 01:55:43 +0300 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-10-23 11:32:02 +1100 |
commit | 2411f42ccba561affc0882f8983811b9d8c02b94 (patch) | |
tree | 501e2aa82da6f6907daaefec5359e0dff347d7f3 /docs/conf.py | |
parent | 454cca6016afc96deb6d1ad5d1b3553ab9ad18dd (diff) |
extmod/moductypes: Make sizeof() accept "layout" parameter.
sizeof() can work in two ways: a) calculate size of already instantiated
structure ("sizeof variable") - in this case we already no layout; b) size
of structure decsription ("sizeof type"). In the latter case, LAYOUT_NATIVE
was assumed, but there should possibility to calculate size for other
layouts too. So, with this patch, there're now 2 forms:
uctypes.sizeof(struct)
uctypes.sizeof(struct_desc, layout)
Diffstat (limited to 'docs/conf.py')
0 files changed, 0 insertions, 0 deletions