A solution to the multiple inclusion problem

Peter da Silva peter at ficc.uu.net
Fri Oct 27 07:38:41 AEST 1989


How about just "#pragma exit"? This would terminate reading the current
file immediately.

#ifdef HEADER_H
#exit
#endif
#define HEADER_H
...
-- 
`-_-' Peter da Silva <peter at ficc.uu.net> <peter at sugar.hackercorp.com>.
 'U`  --------------  +1 713 274 5180.
"That particular mistake will not be repeated.  There are plenty of mistakes
 left that have not yet been used." -- Andy Tanenbaum (ast at cs.vu.nl)



More information about the Comp.lang.c mailing list