Skip to content
Snippets Groups Projects
  • Damien George's avatar
    b25f9216
    py/nlr: Factor out common NLR code to macro and generic funcs in nlr.c. · b25f9216
    Damien George authored
    Each NLR implementation (Thumb, x86, x64, xtensa, setjmp) duplicates a lot
    of the NLR code, specifically that dealing with pushing and popping the NLR
    pointer to maintain the linked-list of NLR buffers.  This patch factors all
    of that code out of the specific implementations into generic functions in
    nlr.c, along with a helper macro in nlr.h.  This eliminates duplicated
    code.
    b25f9216
    History
    py/nlr: Factor out common NLR code to macro and generic funcs in nlr.c.
    Damien George authored
    Each NLR implementation (Thumb, x86, x64, xtensa, setjmp) duplicates a lot
    of the NLR code, specifically that dealing with pushing and popping the NLR
    pointer to maintain the linked-list of NLR buffers.  This patch factors all
    of that code out of the specific implementations into generic functions in
    nlr.c, along with a helper macro in nlr.h.  This eliminates duplicated
    code.