Le Fri, 20 Jun 2014 18:44:35 +0530,
Pranay Srivastava a écrit :
> On Fri, Jun 20, 2014 at 6:29 PM, Harold André
> wrote:
> > Le Fri, 20 Jun 2014 16:36:58 +0530,
> > Pranay Srivastava a écrit :
> >
> >
> >> You say here you will define the function else where if
> >> TEST_FUNCTION is defined
> >
Le Fri, 20 Jun 2014 16:36:58 +0530,
Pranay Srivastava a écrit :
> You say here you will define the function else where if TEST_FUNCTION
> is defined
>
> > #ifdef TEST_FUNCTION
> > void test(int *value);
> > #else
> > static inline void test(int *value) { }
> > #endif
> >
> >
On Fri, Jun 20, 2014 at 6:29 PM, Harold André wrote:
> Le Fri, 20 Jun 2014 16:36:58 +0530,
> Pranay Srivastava a écrit :
>
>
>> You say here you will define the function else where if TEST_FUNCTION
>> is defined
>>
>> > #ifdef TEST_FUNCTION
>> > void test(int *value);
>> > #else
>> >
Hi Harold
On 6/20/14, Harold André wrote:
> Hi,
>
> I try to understand how #ifdef in .h files works.
>
> I read Greg Kroah-Hartman's Coding style paper
> http://www.kroah.com/linux/talks/ols_2002_kernel_codingstyle_talk/html/mgp00031.html
>
> And as he says, i try to do a simple example but it d