Re: [PATCH] static_assert: move before people start using it

From: Rasmus Villemoes
Date: Sun Mar 10 2019 - 17:19:44 EST


On 10/03/2019 11.51, Alexey Dobriyan wrote:
> Userspace places static_assert() macro at <assert.h>
>

So? That seems a rather weak argument. We have lots of interfaces that
also exist in userspace which are not declared in similar-named headers
(e.g. we have no stdio.h, which is where snprintf lives). Not to mention
that memcpy and friends are in <linux/string.h>, not a bare <string.h>.
Your assert.h would be the first and only header to live directly in
include/.

If you can somehow convince Andrew to take it you can add a Meh'ed-by me.

Rasmus