incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings" <Eric.Lemi...@roguewave.com>
Subject terminate.h config test header
Date Tue, 06 May 2008 15:25:19 GMT
 
Try this:

    cd $SRCDIR/etc/config/src && grep -2 'terminate\.h' *

Note that every #include for this header is wrapped by the same #if
directives.  Wouldn't it make sense to move all of these nested if
directives into the header itself and just always include the header?

For example:

	file etc/config/src/terminate.h:
 	...
	#include "config.h"

	#ifndef _RWSTD_NO_HONOR_STD
	#  ifdef _RWSTD_NO_STD_TERMINATE

	namespace std {

	void terminate ()
	{
	    ...
	}
 
	}   // namespace std

	#  endif   // _RWSTD_NO_STD_TERMINATE
	#endif   // _RWSTD_NO_HONOR_STD

Just a thought.

Brad.

Mime
View raw message