Date: Wed, 10 Jul 1996 14:03:54 -0700 (MST) From: Don Yuniskis <dgy@rtd.com> To: freebsd-hackers@freefall.FreeBSD.org (FreeBSD hackers), freebsd-ports@freefall.FreeBSD.org (FreeBSD ports) Subject: Q: macro expansion Message-ID: <199607102103.OAA05637@seagull.rtd.com>
next in thread | raw e-mail | index | archive | help
Greetings!
I was working on a port last night and stumbled upon this code
fragment (paraphrased here):
#define X 1
#define Y 2
X+Y
I was surprised to see that ``X+Y'' was expanded to ``1 +2''. So,
I started digging through ANSI and couldn't seem to locate something
to clearly define this behaviour.
- why the inserted whitespace?
- why no whitespace after `+'?
Any insight would be appreciated...
--don
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607102103.OAA05637>
