Update contrib.
1 // Copyright (c) 2008-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 file is part of scppnwdl.dll.
19 #include <e32std_private.h>
21 EXPORT_C TAny* operator new(TUint aSize) __NO_THROW
23 // The global new operator.
26 return User::Alloc(aSize);
29 EXPORT_C TAny* operator new[](TUint aSize) __NO_THROW
31 return User::Alloc(aSize);
34 EXPORT_C TAny* operator new(TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW
36 // The global new operator.
40 return User::Alloc(aSize);
43 EXPORT_C TAny* operator new[](TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW
46 return User::Alloc(aSize);
49 EXPORT_C TAny* operator new(TUint aSize,TUint anExtraSize) __NO_THROW
51 // Allocate the requested size plus the extra.
54 return User::Alloc(aSize + anExtraSize);