예제 #1
0
파일: rstack.py 프로젝트: antoine1fr/pygirl
def stack_capture():
    if we_are_translated():
        from pypy.rpython.lltypesystem.lloperation import llop
        ptr = llop.stack_capture(OPAQUE_STATE_HEADER_PTR)
        return frame_stack_top_controller.box(ptr)
    raise RuntimeError("cannot unwind stack in non-translated versions")
예제 #2
0
파일: rstack.py 프로젝트: griels/pypy-sc
def stack_capture():
    if we_are_translated():
        from pypy.rpython.lltypesystem.lloperation import llop
        ptr = llop.stack_capture(OPAQUE_STATE_HEADER_PTR)
        return frame_stack_top_controller.box(ptr)
    raise RuntimeError("cannot unwind stack in non-translated versions")
예제 #3
0
파일: rstack.py 프로젝트: gorakhargosh/pypy
def stack_capture():
    if we_are_translated():
        ptr = llop.stack_capture(OPAQUE_STATE_HEADER_PTR)
        return frame_stack_top_controller.box(ptr)
    raise RuntimeError("cannot unwind stack in non-translated versions")