replaced "static unsigned const" to "static const unsigned" so that SWIG can generate wrappers without a syntax error

This commit is contained in:
0x0f0f0f 2020-11-09 09:42:39 +01:00
parent 92338f7051
commit 8a0c63cc64
6 changed files with 126 additions and 126 deletions

View file

@ -122,8 +122,8 @@ def run_cli(
for file in spirv_files:
print(xxd_cmd)
header_data = str(run_cmd(xxd_cmd, "-i", file))
# Ensuring the variable is a static unsigned const
header_data = header_data.replace("unsigned", "static unsigned const")
# Ensuring the variable is a static const unsigned
header_data = header_data.replace("unsigned", "static const unsigned")
if is_windows:
raw_file_name = file.split("\\")[-1]
else: