mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
DEVTOOLS: Add pretty printing support for Common::MultiMap
This commit is contained in:
1 parent
16df5b080a
commit
ff050b75ca
1 file changed
+4
-3
@@ -73,8 +73,8 @@ class RBTreeIterator:
|
||||
parent = self.current_node.dereference()["parent"]
|
||||
return value
|
||||
|
||||
class StableMapPrinter:
|
||||
"Prints Common::StableMap"
|
||||
class RBTreeMapPrinter:
|
||||
"Prints Common::StableMap and Common::MultiMap"
|
||||
|
||||
class _iterator:
|
||||
def __init__(self, rb_tree):
|
||||
@@ -152,7 +152,8 @@ def build_pretty_printer():
|
||||
pp.add_printer('String', '^Common::String$', StringPrinter)
|
||||
pp.add_printer('U32String', '^Common::U32String$', StringPrinter)
|
||||
pp.add_printer('Array', '^Common::Array<.*>$', ArrayPrinter)
|
||||
pp.add_printer('StableMap', '^Common::StableMap<.*>$', StableMapPrinter)
|
||||
pp.add_printer('StableMap', '^Common::StableMap<.*>$', RBTreeMapPrinter)
|
||||
pp.add_printer('MultiMap', '^Common::MultiMap<.*>$', RBTreeMapPrinter)
|
||||
pp.add_printer('List', '^Common::List<.*>$', ListPrinter)
|
||||
return pp
|
||||
|
||||
|
||||
Reference in new issue
Block a user