mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
pan/va: Add header guards to valhall_enums.h
Otherwise we can't #include in multiple places. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17091>
This commit is contained in:
parent
c5a8736552
commit
1b29a99b7b
1 changed files with 5 additions and 0 deletions
|
|
@ -23,6 +23,9 @@
|
|||
|
||||
from valhall import safe_name, enums
|
||||
|
||||
print("#ifndef __VALHALL_ENUMS_H_")
|
||||
print("#define __VALHALL_ENUMS_H_")
|
||||
|
||||
for enum in sorted(enums):
|
||||
print(f"enum va_{safe_name(enum)} {{")
|
||||
|
||||
|
|
@ -32,3 +35,5 @@ for enum in sorted(enums):
|
|||
print(f" {key.upper()} = {i},")
|
||||
|
||||
print("};\n")
|
||||
|
||||
print("#endif")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue