newop3.cpp
来自「不错的东西 请查看 WINCE OS」· C++ 代码 · 共 26 行
CPP
26 行
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// This source code is licensed under Microsoft Shared Source License
// Version 1.0 for Windows CE.
// For a copy of the license visit http://go.microsoft.com/fwlink/?LinkId=3223.
//
// newop3: operator new[](size_t, const nothrow_t&) for Microsoft C++
// Disable "C++ Exception Specification ignored" warning in OS build (-W3)
#pragma warning( disable : 4290 )
#include <new>
#include <corecrt.h>
#include <rtcsup.h>
void * operator new[]( size_t cb, const std::nothrow_t&) throw()
{
void *res = operator new(cb);
RTCCALLBACK(_RTC_Allocate_hook, (res, cb, 0));
return res;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?