1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

winevulkan: Include function name in asserts.

It is really useful to see at a glance what function is
segfaulting/crashing here when debugging games/apps.

This code is generated, and when generating WineVulkan against different
Vulkan spec versions, etc it may be misleading that the Line: referred
to by the assert dialog does not match what is generated locally on
a different machine for the same Wine version/commit.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
Joshua Ashton 2023-06-05 23:49:53 +01:00 committed by Alexandre Julliard
parent 01c3f4dc65
commit fc7e204113
2 changed files with 298 additions and 298 deletions

File diff suppressed because it is too large Load diff

View file

@ -773,7 +773,7 @@ class VkFunction(object):
body += " UNIX_CALL({0}, &params);\n".format(self.name)
else:
body += " status = UNIX_CALL({0}, &params);\n".format(self.name)
body += " assert(!status);\n"
body += " assert(!status && \"{0}\");\n".format(self.name)
if self.type != "void":
body += " return params.result;\n"