The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ipc: Make script more pythonic

+4 -5
+4 -5
src/xrt/ipc/proto.py
··· 38 38 """Construct an argument.""" 39 39 self.name = data['name'] 40 40 self.typename = data['type'] 41 - self.is_aggregate = False 42 - if self.typename.find("struct ") == 0: 43 - self.is_aggregate = True 44 - if self.typename.find("union ") == 0: 45 - self.is_aggregate = True 41 + self.is_aggregate = ( 42 + self.typename.startswith("struct ") 43 + or 44 + self.typename.startswith("union ")) 46 45 47 46 48 47 def write_with_wrapped_args(f, start, args, indent):