Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE().

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christer Weinigel
Date: Saturday, September 20, 2008 - 9:38 am

Cyrill Gorcunov wrote:


Won't work.  You would have to use a macro.  The above would turn into:

      platform_add_devices(devs, 1);

or would if the __must_be_array check didn't catch it.

   /Christer
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Christer Weinigel, (Sat Sep 20, 6:05 am)
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Christer Weinigel, (Sat Sep 20, 7:28 am)
Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARR ..., Christer Weinigel, (Sat Sep 20, 9:38 am)