lkml.org 
[lkml]   [2019]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [to-be-updated] build_bugh-add-wrapper-for-_static_assert.patch removed from -mm tree
On Fri, Feb 08, 2019 at 01:58:24PM -0800, akpm@linux-foundation.org wrote:
> --- a/include/linux/build_bug.h~build_bugh-add-wrapper-for-_static_assert
> +++ a/include/linux/build_bug.h

> +#define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
> +#define __static_assert(expr, msg, ...) _Static_assert(expr, "" msg "")

I suggest adding it to assert.h like userspace does:

#include <assert.h>

\
 
 \ /
  Last update: 2019-02-09 14:01    [W:0.041 / U:5.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site