Re: G_ARRAY_LENGTH for glib.h?
- From: Karl Nelson <kenelson ece ucdavis edu>
- To: gtk-devel-list redhat com
- cc: kenelson sequoia ece ucdavis edu
- Subject: Re: G_ARRAY_LENGTH for glib.h?
- Date: Fri, 21 Jan 2000 23:51:49 -0800
>
> > 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]