I've a proposal for extending the preprocessor:
the directive #return
It would cause leaving the current compilation unit at
the point when it is used.
It would make possible things like:
#endif // somewhere at the end of the file - so
// difficlult to match the #ifdef
The advantage could be more compact way to control the code.
What do you think?
Sent via Deja.com http://www.deja.com/
Before you buy.
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html ]