繁体中文
设为首页
加入收藏
当前位置:程序开发首页 >> 其他开发语言 >> C++ young 程序库——y_define.hpp

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

2005-08-29 00:11:21  作者:youngphoneix  来源:互联网  浏览次数:1  文字大小:【】【】【
简介:文件位置:young/y_define.hpp/*The young LibraryCopyright (c) 2005 by 杨桓Permission to use, copy, modify, distribute and sell this software for anypurpose is hereby granted without fee, provided t...
关键字:C++ 程序 define young hpp

文件位置: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

#include

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

#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( -1 );

static const unsigned int alignment_bytes = 24;

static const unsigned int string_alignment_bytes = 64;

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

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

__MACRO_CPLUSPLUS_YOUNG_LIBRARY_END_NAMESPACE__

#endif

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

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

责任编辑:admin
相关文章