lkml.org 
[lkml]   [2008]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE().
Eric Miao wrote:
> On Fri, Sep 19, 2008 at 2:54 PM, Cyrill Gorcunov <gorcunov@gmail.com> wrote:
>> well, it seems it's not that good to use ARRAY_AND_SIZE at all.
>> Yes it's short but quite frankly - hiding number of args is not
>> that good.
...
> I have to admit
> that a macro expanding to something like an argument list instead
> of a single variable or something is not a good idea. But, we are
> using C,
...

Exactly, we generally program in C --- not in cpp.
--
Stefan Richter
-=====-==--- =--= =--==
http://arcgraph.de/sr/


\
 
 \ /
  Last update: 2008-09-19 15:31    [W:0.063 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site