x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
config.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\test\utils\runtime\config.hpp
旋转
特效
属性
历史版本
// (C) Copyright Gennadiy Rozental 2005-2007. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // Version : $Revision: 43798 $ // // Description : Runtime.Param library configuration // *************************************************************************** #ifndef BOOST_RT_CONFIG_HPP_062604GER #define BOOST_RT_CONFIG_HPP_062604GER // Boost #include
#ifdef BOOST_MSVC # pragma warning(disable: 4511) // copy constructor could not be generated # pragma warning(disable: 4512) // assignment operator could not be generated # pragma warning(disable: 4181) // qualifier applied to reference type; ignored # pragma warning(disable: 4675) // resolved overload was found by argument-dependent lookup #endif // Boost.Test #include
#include
#include
#include
// operator<<(boost::runtime::cstring) // STL #include
#include
//____________________________________________________________________________// #ifndef BOOST_RT_PARAM_CUSTOM_STRING # ifndef BOOST_RT_PARAM_WIDE_STRING # define BOOST_RT_PARAM_NAMESPACE runtime # else # define BOOST_RT_PARAM_NAMESPACE wide_runtime # endif #endif namespace boost { namespace BOOST_RT_PARAM_NAMESPACE { #ifndef BOOST_RT_PARAM_CUSTOM_STRING # ifndef BOOST_RT_PARAM_WIDE_STRING typedef char char_type; typedef std::string dstring; typedef unit_test::const_string cstring; typedef unit_test::literal_string literal_cstring; typedef wrap_stringstream format_stream; #ifdef BOOST_CLASSIC_IOSTREAMS typedef std::ostream out_stream; #else typedef std::basic_ostream
out_stream; #endif #if defined(__COMO__) inline void putenv_impl( cstring name, cstring value ) { using namespace std; // !! this may actually fail. What should we do? setenv( name.begin(), value.begin(), 1 ); } #else inline void putenv_impl( cstring name, cstring value ) { format_stream fs; fs << name << '=' << value; // !! this may actually fail. What should we do? // const_cast is used to satisfy putenv interface using namespace std; putenv( const_cast
( fs.str().c_str() ) ); } #endif #define BOOST_RT_PARAM_LITERAL( l ) l #define BOOST_RT_PARAM_CSTRING_LITERAL( l ) cstring( l, sizeof( l ) - 1 ) #define BOOST_RT_PARAM_GETENV getenv #define BOOST_RT_PARAM_PUTENV putenv_impl #define BOOST_RT_PARAM_EXCEPTION_INHERIT_STD //____________________________________________________________________________// # else typedef wchar_t char_type; typedef std::basic_string
dstring; typedef unit_test::basic_cstring
cstring; typedef const unit_test::basic_cstring
literal_cstring; typedef wrap_wstringstream format_stream; typedef std::wostream out_stream; inline void putenv_impl( cstring name, cstring value ) { format_stream fs; fs << name << '=' << value; // !! this may actually fail. What should we do? // const_cast is used to satisfy putenv interface using namespace std; wputenv( const_cast
( fs.str().c_str() ) ); } #define BOOST_RT_PARAM_LITERAL( l ) L ## l #define BOOST_RT_PARAM_CSTRING_LITERAL( l ) cstring( L ## l, sizeof( L ## l )/sizeof(wchar_t) - 1 ) #define BOOST_RT_PARAM_GETENV wgetenv #define BOOST_RT_PARAM_PUTENV putenv_impl # endif #endif #ifdef __GNUC__ #define BOOST_RT_PARAM_UNNEEDED_VIRTUAL virtual #else #define BOOST_RT_PARAM_UNNEEDED_VIRTUAL #endif //____________________________________________________________________________// } // namespace BOOST_RT_PARAM_NAMESPACE } // namespace boost #endif // BOOST_RT_CONFIG_HPP_062604GER
config.hpp
网页地址
文件地址
上一页
2/8
下一页
下载
( 4 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.