A solution to the multiple inclusion problem

Dave Rifkind dave at charyb.COM
Thu Oct 26 17:03:25 AEST 1989


Just out of interest, would something like this do the job?

     #pragma abandon _FILENAME_H
     #ifndef _FILENAME_H
     #define _FILENAME_H
     ...
     #endif /* _FILENAME_H */

...where "#pragma abandon <name>" means "immediately terminate
processing this file if <name> is #defined"?



More information about the Comp.lang.c mailing list