/*! * @file NewDeleteOp.cpp * @author 全智达 * @brief * * @section Copyright * =======================================================================
*
* Copyright (c) 2005-2010 Tranzda Technologies Co.,Ltd.
* 深圳市全智达科技有限公司 版权所有2005-2010
*
* PROPRIETARY RIGHTS of Tranzda Technologies Co.,Ltd. are involved in
* the subject matter of this material. All manufacturing, reproduction,
* use, and sales rights pertaining to this subject matter are governed
* by the license agreement. The recipient of this software implicitly
* accepts the terms of the license.
* 本软件文档资料是深圳市全智达科技有限公司的合法资产,任何人士阅读和使
* 用本资料必须获得相应的书面授权,承担保密责任和接受相应的法律约束。
*
* 公司网址: http://www.tranzda.com
* 公司邮箱:support@tranzda.com
* =======================================================================
*/ #include "ssTypes.h" #include "TG3_Type.h" #include "TG3_Memory.h" #ifdef new #undef new #endif #ifdef delete #undef delete #endif #ifndef _WIN32 #define __cdecl #endif void * __cdecl operator new(unsigned int size) { return TMalloc(size); } void * __cdecl operator new[](unsigned int size) { return TMalloc(size); } void * __cdecl operator new(unsigned int size, const unsigned short * fileName, int lineNo) { return TMallocEx(size, fileName, lineNo); } void * __cdecl operator new[](unsigned int size, const unsigned short * fileName, int lineNo) { return TMallocEx(size, fileName, lineNo); } void __cdecl operator delete(void *p) { TFree(p); } void __cdecl operator delete[](void *p) { TFree(p); } void __cdecl operator delete(void *p, const unsigned short * fileName, int lineNo) { TFreeEx(p, fileName, lineNo); } void __cdecl operator delete[](void *p, const unsigned short * fileName, int lineNo) { TFreeEx(p, fileName, lineNo); }