Date: Fri, 16 Mar 2001 03:55:43 +0900 From: "Daniel C. Sobral" <dcs@newsguy.com> To: milunovic <milunovic@sendmail.ru> Cc: hackers@FreeBSD.ORG Subject: Re: Little confused Message-ID: <3AB1102F.D7190894@newsguy.com> References: <Pine.BSF.4.21.0103151639550.1291-100000@scorpion.cosmos.all.net>
next in thread | previous in thread | raw e-mail | index | archive | help
milunovic wrote: > > I'm reading kernel source,but I don't understand something like this -> > > example: > #define GG(x,y) \ > static void * const blabla_##x_blabla_##y = &y; > > As I see this should make something like this > > GG(foo,bar) should make > static void * const blabla_foo_blabla_bar = &bar; > > I never saw something like this in programs.Does anybody have any link > where I could find more about this kind of making macros? That's standard C. Kernighan&Ritchie (double sp?) comes to mind. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@the.secret.bsdconspiracy.net It's a rewarding life, but hey, somebody has to have all the fun, right? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AB1102F.D7190894>