#define end_{if|for|while|switch} } Was: Re: #define OR ||

Scott MacHaffie machaffi at fred.cs.washington.edu
Fri Feb 9 05:37:37 AEST 1990


In article <660074 at hpclapd.HP.COM> defaria at hpclapd.HP.COM (Andy DeFaria) writes:
>	IF () THEN
>		...
>		...
>		...
>	ELSE
>		foo;
>		ENDIF
d		i++;
>
>Even with the wrong indentation it is pretty aparent that  foo and  i++ are
>not executed on the same "level".

What about the code
	IF () THEN
		...
	ELSE
		foo;
		i++;
	ENDIF

Are foo and i++ executed at the same level?

What if the define's are as follows:
#define IF if
#define THEN /* start of an if statement */
#define ELSE else
#define ENDIF /* end of an if statement */


				Scott MacHaffie



More information about the Comp.lang.c mailing list