mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
asahi: libagx: introduce AGX_STATIC_ASSERT
Using the array size trick, this works in both OpenCL and C. Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
8661006ef0
commit
28d34f6352
1 changed files with 3 additions and 0 deletions
|
|
@ -30,4 +30,7 @@ uint32_t nir_stack_unmap_agx(uint16_t index);
|
|||
|
||||
#endif
|
||||
|
||||
#define AGX_STATIC_ASSERT(_COND) \
|
||||
typedef char static_assertion_##__line__[(_COND) ? 1 : -1]
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue