mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 05:11:32 +00:00
Handle rdcstrpair or rdcstrpairs in function return types for docstrings
This commit is contained in:
1 file changed
+4
@@ -96,6 +96,10 @@ def make_c_type(ret: str, pattern: bool, typelist: List[str]):
|
||||
ret = 'float|double' if pattern else 'float'
|
||||
elif ret == 'bytes':
|
||||
ret = '(const )?bytebuf ?[&*]?' if pattern else 'bytebuf'
|
||||
elif ret == 'List[Tuple[str,str]]': # special case
|
||||
ret = 'rdcstrpairs'
|
||||
elif ret == 'Tuple[str,str]': # special case
|
||||
ret = 'rdcstrpair'
|
||||
elif ret[0:5] == 'List[':
|
||||
inner = make_c_type(ret[5:-1], pattern, typelist)
|
||||
ret = '(const )?rdcarray<{}> ?[&*]?'.format(inner) if pattern else 'rdcarray<{}>'.format(inner)
|
||||
|
||||
Reference in new issue
Block a user