Commit fc7e2041 authored by Joshua Ashton's avatar Joshua Ashton Committed by Alexandre Julliard

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: 's avatarJoshua Ashton <joshua@froggi.es>
parent 01c3f4dc
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment