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:
parent
01c3f4dc65
commit
fc7e204113
2 changed files with 298 additions and 298 deletions
File diff suppressed because it is too large
Load diff
|
@ -773,7 +773,7 @@ class VkFunction(object):
|
|||
body += " UNIX_CALL({0}, ¶ms);\n".format(self.name)
|
||||
else:
|
||||
body += " status = UNIX_CALL({0}, ¶ms);\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"
|
||||
|
|
Loading…
Add table
Reference in a new issue