pipewire/spa/include/spa/utils
Barnabás Pőcze 39ce32985b spa: support single argument static assertions in older standards
Single argument static_assert() is only available since
C++17 and C23. Some compilers accept it even in earlier language
versions, but some do not.

Single argument static assertions can be supported by using
a GCC extensions, namely that `, ## __VA_ARGS__` removes the
comma if the variadic argument list is empty. This enables a
construction which passes a pre-determined string as the second
argument of the underlying static_assert() when only a single
argument is used in the `SPA_STATIC_ASSERT()` macro.

Fixes #3050
2023-03-04 11:57:51 +00:00
..
ansi.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
defs.h spa: support single argument static assertions in older standards 2023-03-04 11:57:51 +00:00
dict.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
dll.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
enum-types.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
hook.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
json-pod.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
json.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
keys.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
list.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
names.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
result.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
ringbuffer.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
string.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
type-info.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
type.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00