Files
mesa/src/util
Erik Faye-Lund 45fb815a75 util: implement STATIC_ASSERT using c++11 / c11 primitives
Since we now require C11 and C++14, we can use the standard
static_asserts from the standard library instead of rolling our own
compiler-specific versions.

To avoid needing scopes around usage in switch cases, keep the
while-wrapping from before. This means it still can't be used outside of
functions, but that should be fine; we should probably just use
static_assert directly in those cases anyway.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16670>
2022-06-03 07:14:43 +00:00
..
2022-04-22 19:38:52 +00:00
2022-04-22 19:38:52 +00:00
2021-11-17 13:41:47 +00:00
2021-11-17 13:41:47 +00:00
2022-06-02 13:09:16 +00:00
2021-08-14 21:44:32 +00:00
2022-04-06 00:04:14 +00:00
2021-10-20 21:40:31 -07:00
2022-06-02 13:09:16 +00:00
2022-03-09 08:48:59 +00:00
2022-03-09 08:48:59 +00:00
2022-04-20 18:44:35 +00:00
2022-04-08 13:15:12 +00:00
2022-06-02 13:09:16 +00:00
2021-02-22 00:30:46 +00:00
2021-05-10 15:34:07 +00:00
2021-02-19 11:05:38 +00:00
2022-05-17 21:02:24 +00:00
2021-08-14 21:44:32 +00:00
2020-12-01 10:04:41 +01:00