提交 9ba70cb9 authored 作者: Frederic Bastien's avatar Frederic Bastien

comment debug code.

上级 406674ed
...@@ -1172,8 +1172,8 @@ class _Linker(gof.link.LocalLinker): ...@@ -1172,8 +1172,8 @@ class _Linker(gof.link.LocalLinker):
# compares the version from thunk_py (in r_vals) # compares the version from thunk_py (in r_vals)
# to the version produced by thunk_c (in storage_map) # to the version produced by thunk_c (in storage_map)
if not r.type.values_eq_approx(r_vals[r], storage_map[r][0]): if not r.type.values_eq_approx(r_vals[r], storage_map[r][0]):
import pdb; pdb.set_trace() #import pdb; pdb.set_trace()
r.type.values_eq_approx(r_vals[r], storage_map[r][0]) #r.type.values_eq_approx(r_vals[r], storage_map[r][0])
raise BadCLinkerOutput(r, val_py=r_vals[r], val_c=storage_map[r][0]) raise BadCLinkerOutput(r, val_py=r_vals[r], val_c=storage_map[r][0])
else: else:
#print >> sys.stderr, i, "DEBUGMODE storing reference output %x" % id(storage_map[r][0]) #print >> sys.stderr, i, "DEBUGMODE storing reference output %x" % id(storage_map[r][0])
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论