epoc32/include/symcpp.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
child 4 837f303aceeb
     1.1 --- a/epoc32/include/symcpp.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/symcpp.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,50 @@
     1.4 -symcpp.h
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +// e32\compsupp\symcpp\symcpp.h
    1.19 +// This is a preinclude file for the symbian cpp specific defintions from RVCT2.2 onwards
    1.20 +// 
    1.21 +//
    1.22 +
    1.23 +#ifdef __ARMCC_VERSION
    1.24 +#if (__ARMCC_VERSION < 220000 || __ARMCC_VERSION >= 230000)
    1.25 +#error This instantiation of the build requires use of RVCT 2.2
    1.26 +#endif
    1.27 +#endif
    1.28 +
    1.29 +// Deal with operator new issues here
    1.30 +#ifdef __cplusplus
    1.31 +namespace std {
    1.32 +	struct nothrow_t { };
    1.33 +	extern const nothrow_t nothrow;
    1.34 +}
    1.35 +
    1.36 +IMPORT_C void* operator new(unsigned int aSize) __NO_THROW;
    1.37 +
    1.38 +IMPORT_C void* operator new(unsigned int aSize,unsigned int aSize1) __NO_THROW;
    1.39 +
    1.40 +IMPORT_C void* operator new[](unsigned int aSize) __NO_THROW;
    1.41 +
    1.42 +IMPORT_C void* operator new(unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
    1.43 +
    1.44 +IMPORT_C void* operator new[](unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
    1.45 +
    1.46 +IMPORT_C void operator delete(void* aPtr) __NO_THROW;
    1.47 +
    1.48 +IMPORT_C void operator delete[](void* aPtr) __NO_THROW;
    1.49 +
    1.50 +IMPORT_C void operator delete(void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
    1.51 +
    1.52 +IMPORT_C void operator delete[](void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
    1.53 +
    1.54 +#endif