equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002-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 * |
|
16 */ |
|
17 |
|
18 #include <e32std.h> |
|
19 #include <e32std_private.h> |
|
20 //#include <e32math.h> |
|
21 //#include "uc_std.h" |
|
22 |
|
23 EXPORT_C TAny* operator new(TUint aSize) __NO_THROW |
|
24 // |
|
25 // The global new operator. |
|
26 // |
|
27 { |
|
28 |
|
29 return(User::Alloc(aSize)); |
|
30 } |
|
31 |
|
32 EXPORT_C TAny* operator new[](TUint aSize) __NO_THROW |
|
33 { |
|
34 |
|
35 return(User::Alloc(aSize)); |
|
36 } |
|
37 |
|
38 EXPORT_C TAny* operator new(TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW |
|
39 // |
|
40 // The global new operator. |
|
41 // |
|
42 { |
|
43 (void) aNoThrow; |
|
44 return(User::Alloc(aSize)); |
|
45 } |
|
46 |
|
47 EXPORT_C TAny* operator new[](TUint aSize, const std::nothrow_t& aNoThrow) __NO_THROW |
|
48 { |
|
49 (void) aNoThrow; |
|
50 return(User::Alloc(aSize)); |
|
51 } |
|
52 |
|
53 EXPORT_C TAny* operator new(TUint aSize,TUint anExtraSize) __NO_THROW |
|
54 // |
|
55 // Allocate the requested size plus the extra. |
|
56 // |
|
57 { |
|
58 |
|
59 return(User::Alloc(aSize+anExtraSize)); |
|
60 } |