1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/kernel/eka/compsupp/symcpp/symcpp.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,58 @@
1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of the License "ARM EABI LICENCE.txt"
1.8 +// which accompanies this distribution, and is available
1.9 +// in kernel/eka/compsupp.
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// This is a preinclude file for the Symbian C++ specific defintions for RVCT.
1.18 +//
1.19 +//
1.20 +
1.21 +// Deal with operator new issues here
1.22 +#ifdef __cplusplus
1.23 +namespace std {
1.24 + struct nothrow_t { };
1.25 + extern const nothrow_t nothrow;
1.26 +}
1.27 +
1.28 +#ifndef __OPERATOR_NEW_DECLARED__
1.29 +#define __OPERATOR_NEW_DECLARED__
1.30 +
1.31 +/* e32cmn.h also declares these five overloads, but slightly differently, so use
1.32 + * __OPERATOR_NEW_DECLARED__ to avoid the declarations here (included by compiler-specific
1.33 + * pre-include files) from conflicting.
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 delete(void* aPtr) __NO_THROW;
1.43 +
1.44 +IMPORT_C void operator delete[](void* aPtr) __NO_THROW;
1.45 +
1.46 +#endif // !__OPERATOR_NEW_DECLARED__
1.47 +
1.48 +
1.49 +/* The following four overloads are not declared by the generic Symbian headers, so
1.50 + * do not need to be protected by __OPERATOR_NEW_DECLARED__.
1.51 + */
1.52 +
1.53 +IMPORT_C void* operator new(unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
1.54 +
1.55 +IMPORT_C void* operator new[](unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
1.56 +
1.57 +IMPORT_C void operator delete(void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
1.58 +
1.59 +IMPORT_C void operator delete[](void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
1.60 +
1.61 +#endif