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 "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\compsupp\symcpp\symcpp.h
15 // This is a preinclude file for the symbian cpp specific defintions from RVCT2.2 onwards
19 #ifdef __ARMCC_VERSION
20 #if (__ARMCC_VERSION < 220000 || __ARMCC_VERSION >= 230000)
21 #error This instantiation of the build requires use of RVCT 2.2
25 // Deal with operator new issues here
29 extern const nothrow_t nothrow;
32 IMPORT_C void* operator new(unsigned int aSize) __NO_THROW;
34 IMPORT_C void* operator new(unsigned int aSize,unsigned int aSize1) __NO_THROW;
36 IMPORT_C void* operator new[](unsigned int aSize) __NO_THROW;
38 IMPORT_C void* operator new(unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
40 IMPORT_C void* operator new[](unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
42 IMPORT_C void operator delete(void* aPtr) __NO_THROW;
44 IMPORT_C void operator delete[](void* aPtr) __NO_THROW;
46 IMPORT_C void operator delete(void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
48 IMPORT_C void operator delete[](void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;