Re: G_ARRAY_LENGTH for glib.h?



> 
> > It should be called:
> > 
> >     G_IS_ARRAY_TYPE_RATHER_THAN_POINTER(A) ((void *) &(A) == (void *) &(A)[
> 0])

Lets be kind and call is G_IS_POINTER.  macros whose names are
longer that the expression are kind of pointless. :-)

 #define G_IS_POINTER(A) ((void *) &(A) != (void *) &(A)[0])

--Karl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]