C++ young 程序庫——y_define.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 <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
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章