Constants in conditionals

Jef Poskanzer jef at well.sf.ca.us
Thu Feb 21 08:44:25 AEST 1991


In the referenced message, pt at geovision.gvc.com wrote:
}Sorry, but #ifdef or #if is SOOO basic, that if you don't know how to use
}it (or refuse to for wierd reasons), you loose.

Using "if" for conditional compilation instead of "#if" has one major
advantage: the outshipped code continues to get checked for syntax
errors.  For machine-dependent code you probably don't want this,
otherwise you probably do.  But you're right, you do have to check
the generated assembly code to make sure your compiler is doing
the right thing.  These days, most do.
---
Jef

  Jef Poskanzer  jef at well.sf.ca.us  {apple, ucbvax, hplabs}!well!jef
"It's what you learn after you know it all that counts." -- John Wooden



More information about the Comp.lang.c mailing list