| www.delorie.com/archives/browse.cgi | search |
| Date: | Tue, 30 Dec 1997 10:23:12 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Puzzled:Allegro Code |
| In-Reply-To: | <34A86C70.82B0D50@cornell.edu> |
| Message-ID: | <Pine.SUN.3.91.971230102255.577M-100000@is> |
| MIME-Version: | 1.0 |
On Mon, 29 Dec 1997, A. Sinan Unur wrote:
> > follows #define END_OF_FUNCTION(x) x##_end(){}
> <SNIP>
>
> given a function func
>
> END_OF_FUNCTION(func)
>
> expands to
>
> func##_end() {}
Acually, ## is the ANSI C pre-processor concatenation token. So
END_OF_FUNCTION(foo) will expand to "foo_end(){}" (without the ##).
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |