[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <YZe9yYBvE038/w90@localhost.localdomain>
Date: Fri, 19 Nov 2021 18:07:53 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: Alejandro Colomar <alx.manpages@...il.com>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 00/17] Add memberof(), split some headers, and slightly
simplify code
> +#define memberof(T, m) (((T *) NULL)->m)
> +
> #define typeof_member(T, m) typeof(((T*)0)->m)
No.
Your macro exists already under different name.
sizeof_member and typeof_member exist, you don't anything more.
Powered by blists - more mailing lists