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

compile.h

Blame
  • user avatar
    Damien George authored
    To enable parsing constants more efficiently, mp_parse should be allowed
    to raise an exception, and mp_compile can already raise a MemoryError.
    So these functions need to be protected by an nlr push/pop block.
    
    This patch adds that feature in all places.  This allows to simplify how
    mp_parse and mp_compile are called: they now raise an exception if they
    have an error and so explicit checking is not needed anymore.
    0bfc7638
    History
    compile.h 1.96 KiB