Skip to content
Snippets Groups Projects
Select Git revision
  • dualcore
  • ch3/leds
  • wip-bootstrap default
  • ch3/time
  • master
5 results

extmod

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Paul Sokolovsky authored
    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)
    2411f42c
    History
    Name Last commit Last update
    ..