Update contrib.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "ARM EABI LICENCE.txt"
5 // which accompanies this distribution, and is available
6 // in kernel/eka/compsupp.
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This is a preinclude file for the Symbian C++ specific defintions for RVCT.
18 // Deal with operator new issues here
22 extern const nothrow_t nothrow;
25 #ifndef __OPERATOR_NEW_DECLARED__
26 #define __OPERATOR_NEW_DECLARED__
28 /* e32cmn.h also declares these five overloads, but slightly differently, so use
29 * __OPERATOR_NEW_DECLARED__ to avoid the declarations here (included by compiler-specific
30 * pre-include files) from conflicting.
33 IMPORT_C void* operator new(unsigned int aSize) __NO_THROW;
35 IMPORT_C void* operator new(unsigned int aSize,unsigned int aSize1) __NO_THROW;
37 IMPORT_C void* operator new[](unsigned int aSize) __NO_THROW;
39 IMPORT_C void operator delete(void* aPtr) __NO_THROW;
41 IMPORT_C void operator delete[](void* aPtr) __NO_THROW;
43 #endif // !__OPERATOR_NEW_DECLARED__
46 /* The following four overloads are not declared by the generic Symbian headers, so
47 * do not need to be protected by __OPERATOR_NEW_DECLARED__.
50 IMPORT_C void* operator new(unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
52 IMPORT_C void* operator new[](unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
54 IMPORT_C void operator delete(void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
56 IMPORT_C void operator delete[](void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;