You _CAN_ "stringize" tokens in (some) K&R pre-processors

Tim Roberts timr at gssc.UUCP
Fri Apr 5 02:53:12 AEST 1991


In article <1991Apr3.193750.14282 at informatik.uni-erlangen.de> cnwietho at immd4.informatik.uni-erlangen.de (Carsten Wiethoff) writes:
>I prefer
>
>#define QUOTE(x) "x
>#define STRINGINIZE(x) QUOTE(x)"
>
>which does not have the problem with spaces before x.

If that construct works for some preprocessor, then wouldn't the much simpler

	#define STRINGINIZE(x)	"x"

also work?

-- 
timr at gssc.gss.com	Tim N Roberts, CCP	Graphic Software Systems
						Beaverton, OR

This is a very long palindrome. .emordnilap gnol yrev a si sihT



More information about the Comp.lang.c mailing list