Using a define that hasn't been #defined
John Gordon
gordon at osiris.cso.uiuc.edu
Wed Oct 3 12:21:32 AEST 1990
In fact, there is a very good way to avoid this kind of error: use the
compiler directives #ifdef and #ifndef. These check to see if a given
identifier has or has not been #define'd.
Example:
#ifdef MSDOS
do_dos_specific_stuff();
...
...
Hope it helps.
---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu #include <disclaimer.h>
gordon at cerl.cecer.army.mil #include <clever_saying.h>
GEnie: j.gordon14
More information about the Comp.lang.c
mailing list