C++ young 程序库——y_define.hpp

王朝c/c++·作者佚名  2006-01-10
窄屏简体版  字體: |||超大  

文件位置:young/y_define.hpp

/*

The young Library

Copyright (c) 2005 by 杨桓

Permission to use, copy, modify, distribute and sell this software for any

purpose is hereby granted without fee, provided that the above copyright

notice appear in all copies and that both that copyright notice and this

permission notice appear in supporting documentation.

The author make no representations about the suitability of this software

for any purpose. It is provided "as is" without express or implied warranty.

*/

//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------

#ifndef __MACRO_CPLUSPLUS_YOUNG_LIBRARY_DEFINE_HEADER_FILE__

#define __MACRO_CPLUSPLUS_YOUNG_LIBRARY_DEFINE_HEADER_FILE__

//-----------------------------------------------------------------------------

#include <climits>

#include <cstddef>

//-----------------------------------------------------------------------------

#define __MACRO_CPLUSPLUS_YOUNG_LIBRARY_BEGIN_NAMESPACE__ namespace young{

#define __MACRO_CPLUSPLUS_YOUNG_LIBRARY_END_NAMESPACE__ }

//-----------------------------------------------------------------------------

__MACRO_CPLUSPLUS_YOUNG_LIBRARY_BEGIN_NAMESPACE__

//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------

#define NULL_POINTER 0

typedef int def_nullptr_t;

typedef std::size_t def_size_t;

typedef std::ptrdiff_t def_ptrdiff_t;

static const def_size_t size_t_max = static_cast<def_size_t>( -1 );

static const unsigned int alignment_bytes = 24;

static const unsigned int string_alignment_bytes = 64;

//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------

__MACRO_CPLUSPLUS_YOUNG_LIBRARY_END_NAMESPACE__

#endif

//-----------------------------------------------------------------------------

//-----------------------------------------------------------------------------

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航