#define kinda stuff

David Eppstein eppstein at garfield.columbia.edu
Sat Apr 12 07:12:26 AEST 1986


In article <1458 at cwruecmp.UUCP> ryan at cwruecmp.UUCP (Ryan McGuire) writes:
> #define (-: /*
> #define :-) */

Obviously the right way to do this is the following:

	#define  cat(a,b)  a/**/b
	#define  (-:       cat(/,*)
	#define  :-)       cat(*,/)

Of course you might have to do it differently in ANSI C...

There are already enough pictographs here that I shouldn't need
to add another for the terminally humorless...
-- 
David Eppstein, eppstein at cs.columbia.edu, seismo!columbia!cs!eppstein
(note that the garfield in my headers is *not* the one in the UUCP map)



More information about the Comp.lang.c mailing list