summaryrefslogtreecommitdiff
path: root/src/strings
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-11-08 17:53:18 -0800
committerBen Longbons <b.r.longbons@gmail.com>2014-11-09 19:58:42 -0800
commit3cf55f763ef8c75e8e8c11fca3c3e564668aee52 (patch)
tree703a5744c4ee1cb807e59ca49df283d52250f613 /src/strings
parenta7333d7e59515db8a5f95f43a3b26793505b2aae (diff)
downloadtmwa-3cf55f763ef8c75e8e8c11fca3c3e564668aee52.tar.gz
tmwa-3cf55f763ef8c75e8e8c11fca3c3e564668aee52.tar.bz2
tmwa-3cf55f763ef8c75e8e8c11fca3c3e564668aee52.tar.xz
tmwa-3cf55f763ef8c75e8e8c11fca3c3e564668aee52.zip
Make it easier to debug scripts, especially from coredumps
Diffstat (limited to 'src/strings')
-rw-r--r--src/strings/rstring.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/strings/rstring.py b/src/strings/rstring.py
index 27e9ff2..75fe2db 100644
--- a/src/strings/rstring.py
+++ b/src/strings/rstring.py
@@ -1,3 +1,6 @@
+# used by other pretty-printers
+rstring_disable_children = False
+
class RString(object):
__slots__ = ('_value')
name = 'tmwa::strings::RString'
@@ -21,6 +24,8 @@ class RString(object):
return b.lazy_string(length=d)
def children(self):
+ if rstring_disable_children:
+ return
v = self._value
if v['maybe_end']:
pass