Пример #1
0
 def f(x):
     debug_start("mycat")
     debug_print("foo", 2, "bar", x)
     debug_stop("mycat")
     debug_flush() # does nothing
     debug_offset() # should not explode at least
     return have_debug_prints()
Пример #2
0
 def f(x):
     debug_start("mycat")
     debug_print("foo", 2, "bar", x)
     debug_stop("mycat")
     debug_flush()  # does nothing
     debug_offset()  # should not explode at least
     return have_debug_prints()
Пример #3
0
 def entry_point(argv):
     x = "got:"
     debug_start("mycat")
     if have_debug_prints(): x += "b"
     debug_print("foo", r_longlong(2), "bar", 3)
     debug_start("cat2")
     if have_debug_prints(): x += "c"
     debug_print("baz")
     debug_stop("cat2")
     if have_debug_prints(): x += "d"
     debug_print("bok")
     debug_stop("mycat")
     if have_debug_prints(): x += "a"
     debug_print("toplevel")
     debug_print("some int", rffi.cast(rffi.INT, 3))
     debug_flush()
     os.write(1, x + "." + str(debug_offset()) + '.\n')
     return 0
Пример #4
0
 def entry_point(argv):
     x = "got:"
     debug_start  ("mycat")
     if have_debug_prints(): x += "b"
     debug_print    ("foo", r_longlong(2), "bar", 3)
     debug_start      ("cat2")
     if have_debug_prints(): x += "c"
     debug_print        ("baz")
     debug_stop       ("cat2")
     if have_debug_prints(): x += "d"
     debug_print    ("bok")
     debug_stop   ("mycat")
     if have_debug_prints(): x += "a"
     debug_print("toplevel")
     debug_print("some int", rffi.cast(rffi.INT, 3))
     debug_flush()
     os.write(1, x + "." + str(debug_offset()) + '.\n')
     return 0
Пример #5
0
def op_debug_offset():
    return debug.debug_offset()
Пример #6
0
def op_debug_offset():
    return debug.debug_offset()