chiark / gitweb /
symbolic.py: fixes for debug output post making-things-into-a-function
[moebius3.git] / moedebug.py
1
2
3 _files = []
4
5 def dbg_file(f):
6   _files.append(f)
7
8 def dbg_enabled():
9   return not not _files
10
11 def dbg(*args):
12   for f in _files:
13     print('// D ', *args, file=f)
14     f.flush()