⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 new

📁 MMI层OBJ不能完全编译
💻
字号:
/*****************************************************************************/
/* new   v2.54                                                               */
/* Copyright (c) 1996-2004 Texas Instruments Incorporated                    */
/*****************************************************************************/

#ifndef _NEW
#define _NEW

#include <cstdlib>      // for size_t
#include <exception>    // for exception

namespace std
{
   class bad_alloc {};
   struct nothrow_t {};
   extern const nothrow_t nothrow;
   typedef void (*new_handler)();
   new_handler set_new_handler(new_handler new_p); // throw();
}	

void *operator new(std::size_t size); // throw(std::bad_alloc)
void *operator new(std::size_t size, const std::nothrow_t&); // throw()
void  operator delete(void *ptr); // throw()
void  operator delete(void *ptr, const std::nothrow_t&); // throw()
void *operator new[](std::size_t size); // throw(std::bad_alloc)
void *operator new[](std::size_t size, const std::nothrow_t& nt_arg); //throw()
void  operator delete[](void *ptr); // throw()
void  operator delete[](void *ptr, const std::nothrow_t& nt_arg); // throw()
void *operator new  (std::size_t, void *ptr); // throw()
void *operator new[](std::size_t, void *ptr); // throw()
void  operator delete  (void *ptr, void*); // throw()
void  operator delete[](void *ptr, void*); // throw()

#ifdef __embedded_cplusplus
//----------------------------------------------------------------------------
// We cannot expect the embedded C++ user to use std namespace. So we include
// the using directive when compiled under embedded C++.
//----------------------------------------------------------------------------
using namespace std;
#endif /* __embedded_cplusplus */

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -