[kvm-unit-tests PATCH 01/16] lib: Add and use static_assert() convenience wrappers
Janosch Frank
frankja at linux.ibm.com
Fri May 30 02:01:28 PDT 2025
On 5/30/25 12:19 AM, Sean Christopherson wrote:
> Add static_assert() to wrap _Static_assert() with stringification of the
> tested expression as the assert message. In most cases, the failed
> expression is far more helpful than a human-generated message (usually
> because the developer is forced to add _something_ for the message).
>
> For API consistency, provide a double-underscore variant for specifying a
> custom message.
>
> Signed-off-by: Sean Christopherson <seanjc at google.com>
Reviewed-by: Janosch Frank <frankja at linux.ibm.com>
More information about the kvm-riscv
mailing list