Re: RH7/CORBA compile queries (was RH7/gnome compile queries)
- From: "Bruce W. Bigby" <bbigby rochester rr com>
- To: Iain <tigermilk btinternet com>
- Cc: dsh8290 rit edu, Joachim Backes <backes rhrk uni-kl de>, gnome-list <gnome-list gnome org>
- Subject: Re: RH7/CORBA compile queries (was RH7/gnome compile queries)
- Date: Fri, 20 Oct 2000 21:17:20 -0400
Iain wrote:
>
> > (here's the line, there are several of them and they all give the same
> error)
> >
> > #define ENCODER_DEC(typename) \
> > void giop_encoder_##typename##(GIOPSendBuffer *send_buffer, \
> > const typename *mem)
> >
> >
> > Could someone explain this C (preprocessor) feature to me?
>
> It's explained fully in the gcc info file under ## I think, but basically,
> it puts whatever is in typename into the define. So for ENCODER_DEC(wibble)
> it will expand to
> void giop_encoder_wibble(GIOPSendBuffer *send_buffer, const wibble *mem)
>
> iain
>
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list
Is this portable to non-GCC compiler environments???
--
Bruce W. Bigby
http://home.rochester.rr.com/bigbyofrocny
An elegant piece of software is one in which its design and
its implementation are one and the same.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]