macros with parameters in MSC 5.0

Eddie Wyatt edw at IUS1.CS.CMU.EDU
Fri Feb 19 08:48:17 AEST 1988


> >  #define ctl(c) ('c'&037)
> >... is not allowed in MSC5.0
> 
> Nor in ANSI C.

  Does this imply that a macro parameter will nolonger be expanded in
strings too?

#define DEBUG_CALL(xxx)	if ((xxx) != OK) {				 \
  			    (void) printf("xxx\n");			 \
  			    (void) printf("%s %d\n\n",__FILE__,__LINE__);\
                            clearline(); }
-- 

Eddie Wyatt 				e-mail: edw at ius1.cs.cmu.edu



More information about the Comp.lang.c mailing list