summaryrefslogtreecommitdiff
path: root/src/strings/rstring.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/strings/rstring.py')
-rw-r--r--src/strings/rstring.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/strings/rstring.py b/src/strings/rstring.py
index 61603d8..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
@@ -31,7 +36,7 @@ class RString(object):
test_extra = '''
using tmwa::operator "" _s;
- #include "../src/strings/zstring.hpp"
+ #include "../strings/zstring.hpp"
'''
tests = [