wayland/tests/data
Simon Ser dbfa8d784e scanner: use separate guards for validator functions
Generated XXX_is_valid() functions for enums are guarded behind the
same #define as the enum itself. This worked fine until recently,
but since fbd7460737 ("scanner: add new enum-header mode") we're
also generating enum-only headers.

When including the enum-only header first, and then the server
header, the validator functions are missing.

Define a separate guard to fix this.

Signed-off-by: Simon Ser <contact@emersion.fr>
2025-02-23 23:38:15 +01:00
..
bad-identifier-arg.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-entry.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-enum.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-event.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-interface.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-protocol.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
bad-identifier-request.xml tests: Verify that wayland_scanner can catch bad identifiers 2019-05-02 17:42:59 +00:00
empty-client.h util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
empty-code.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
empty-server.h util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
empty.xml util: fix undefined behavior in wl_array_for_each 2024-03-24 20:00:01 -04:00
example-client.h doc: fix typo in wl_data_device.data_offer 2022-01-10 10:07:22 +00:00
example-code.c scanner: add validators for enums 2024-04-23 09:17:02 +00:00
example-enum.h tests: add scanner test for enum-header 2024-03-28 13:21:28 +00:00
example-server.h scanner: use separate guards for validator functions 2025-02-23 23:38:15 +01:00
example.xml doc: fix typo in wl_data_device.data_offer 2022-01-10 10:07:22 +00:00
README.md build: add a gen-scanner-test target 2024-01-15 14:29:10 +01:00
small-client-core.h tests: add enum bitfield test 2024-07-09 18:22:10 +02:00
small-client.h tests: add enum bitfield test 2024-07-09 18:22:10 +02:00
small-code-core.c tests: add deprecated-since attributes 2024-04-24 16:18:28 +00:00
small-code.c tests: add deprecated-since attributes 2024-04-24 16:18:28 +00:00
small-private-code.c tests: add deprecated-since attributes 2024-04-24 16:18:28 +00:00
small-server-core.h scanner: use separate guards for validator functions 2025-02-23 23:38:15 +01:00
small-server.h scanner: use separate guards for validator functions 2025-02-23 23:38:15 +01:00
small.xml tests: add enum bitfield test 2024-07-09 18:22:10 +02:00

To re-generate the test data, run:

ninja -C build/ gen-scanner-test