The open source OpenXR runtime
0
fork

Configure Feed

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

a/bindings: Fix extra tabs in generated code

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2364>

+3 -3
+3 -3
src/xrt/auxiliary/bindings/bindings.py
··· 450 450 f.write("\treturn false;\n}\n") 451 451 452 452 453 - if_strcmp = '''{exttab}if (strcmp(str, "{check}") == 0) {{ 453 + if_strcmp = '''if (strcmp(str, "{check}") == 0) {{ 454 454 {exttab}\t\t\treturn true; 455 455 {exttab}\t\t}} else ''' 456 456 ··· 464 464 the values are lists of strings of that length. And a suffix if any.""" 465 465 f.write(f"{tab_char}\tswitch (length) {{\n") 466 466 for length in sorted(dict_of_lists.keys()): 467 - f.write(f"{tab_char}\tcase {str(length)}:\n\t\t") 467 + f.write(f"{tab_char}\tcase {str(length)}:\n\t\t{tab_char}") 468 468 for path in sorted(dict_of_lists[length]): 469 469 f.write(if_strcmp.format(exttab=tab_char, check=path)) 470 - f.write(f"{tab_char}{{\n{tab_char}\t\t\tbreak;\n{tab_char}\t\t}}\n") 470 + f.write(f"{{\n{tab_char}\t\t\tbreak;\n{tab_char}\t\t}}\n") 471 471 f.write(f"{tab_char}\tdefault: break;\n{tab_char}\t}}\n") 472 472 473 473 def write_verify_func_switch(f, dict_of_lists, profile, profile_name, ext_name):