equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * This file is part of scppnwdl.dll. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <e32std.h> |
|
21 #include <e32std_private.h> |
|
22 |
|
23 EXPORT_C TAny* operator new(TUint aSize) __NO_THROW |
|
24 // |
|
25 // The global new operator. |
|
26 // |
|
27 { |
|
28 return User::Alloc(aSize); |
|
29 } |
|
30 |
|
31 EXPORT_C TAny* operator new[](TUint aSize) __NO_THROW |
|
32 { |
|
33 return User::Alloc(aSize); |
|
34 } |
|
35 |
|
36 EXPORT_C TAny* operator new(TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW |
|
37 // |
|
38 // The global new operator. |
|
39 // |
|
40 { |
|
41 (void) aNoThrow; |
|
42 return User::Alloc(aSize); |
|
43 } |
|
44 |
|
45 EXPORT_C TAny* operator new[](TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW |
|
46 { |
|
47 (void) aNoThrow; |
|
48 return User::Alloc(aSize); |
|
49 } |
|
50 |
|
51 EXPORT_C TAny* operator new(TUint aSize,TUint anExtraSize) __NO_THROW |
|
52 // |
|
53 // Allocate the requested size plus the extra. |
|
54 // |
|
55 { |
|
56 return User::Alloc(aSize + anExtraSize); |
|
57 } |