示例#1
0
def fatalerror(msg, traceback=False):
    from pypy.rpython.lltypesystem import lltype
    from pypy.rpython.lltypesystem.lloperation import llop

    if traceback:
        llop.debug_print_traceback(lltype.Void)
    llop.debug_fatalerror(lltype.Void, msg)
示例#2
0
def fatalerror(msg):
    # print the RPython traceback and abort with a fatal error
    if not we_are_translated():
        raise FatalError(msg)
    from pypy.rpython.lltypesystem import lltype
    from pypy.rpython.lltypesystem.lloperation import llop
    llop.debug_print_traceback(lltype.Void)
    llop.debug_fatalerror(lltype.Void, msg)
示例#3
0
def fatalerror(msg, traceback=False):
    from pypy.rpython.lltypesystem import lltype
    from pypy.rpython.lltypesystem.lloperation import llop
    if traceback:
        llop.debug_print_traceback(lltype.Void)
    llop.debug_fatalerror(lltype.Void, msg)
示例#4
0
文件: debug.py 项目: are-prabhu/pypy
def fatalerror(msg):
    # print the RPython traceback and abort with a fatal error
    from pypy.rpython.lltypesystem import lltype
    from pypy.rpython.lltypesystem.lloperation import llop
    llop.debug_print_traceback(lltype.Void)
    llop.debug_fatalerror(lltype.Void, msg)