Fabio Busatto writes:
> Otherwise, how do you suggest to make various new features
> available on-demand at compile time?
The exact method is dependent upon the exact code, but most generally,
you provide a library of functions, some of which have the exact same
API, and then you link to one or the other depending on which feature
you want. Think "object-oriented programming" only done efficiently
at compile-time (or, more properly, link time).
#ifdefs are the bane of a programmer's existance. A professional
won't use them.
--
--my blog is at http://blog.russnelson.com | You can do any damn thing
Crynwr sells support for free software | PGPok | you want, as long as you
521 Pleasant Valley Rd. | +1 315-323-1241 | don't expect somebody else
Potsdam, NY 13676-3213 | Sheepdog | to pick up the pieces.
|