mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
vulkan: Generate files with newline at end
These generator scripts use the `write` function that, unlike `print`, doesn't print a trailing newline. So let's add one to the template. Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35697>
This commit is contained in:
parent
6a47531440
commit
7d329d615a
2 changed files with 6 additions and 3 deletions
|
|
@ -190,7 +190,8 @@ H_TEMPLATE = Template(textwrap.dedent(u"""\
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif"""))
|
||||
#endif
|
||||
"""))
|
||||
|
||||
|
||||
H_DEFINE_TEMPLATE = Template(textwrap.dedent(u"""\
|
||||
|
|
@ -253,7 +254,8 @@ H_DEFINE_TEMPLATE = Template(textwrap.dedent(u"""\
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif"""))
|
||||
#endif
|
||||
"""))
|
||||
|
||||
|
||||
class NamedFactory(object):
|
||||
|
|
|
|||
|
|
@ -42,7 +42,8 @@ H_TEMPLATE = Template(textwrap.dedent(u"""\
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif"""))
|
||||
#endif
|
||||
"""))
|
||||
|
||||
|
||||
class VkStruct(object):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue