os/kernelhwsrv/kernel/eka/compsupp/symcpp/symcpp.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@0
     1
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of the License "ARM EABI LICENCE.txt"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// in kernel/eka/compsupp.
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
// This is a preinclude file for the Symbian C++ specific defintions for RVCT.
sl@0
    15
// 
sl@0
    16
//
sl@0
    17
sl@0
    18
// Deal with operator new issues here
sl@0
    19
#ifdef __cplusplus
sl@0
    20
namespace std {
sl@0
    21
	struct nothrow_t { };
sl@0
    22
	extern const nothrow_t nothrow;
sl@0
    23
}
sl@0
    24
sl@0
    25
#ifndef __OPERATOR_NEW_DECLARED__
sl@0
    26
#define __OPERATOR_NEW_DECLARED__
sl@0
    27
sl@0
    28
/* e32cmn.h also declares these five overloads, but slightly differently, so use
sl@0
    29
 * __OPERATOR_NEW_DECLARED__ to avoid the declarations here (included by compiler-specific
sl@0
    30
 * pre-include files) from conflicting.
sl@0
    31
 */
sl@0
    32
sl@0
    33
IMPORT_C void* operator new(unsigned int aSize) __NO_THROW;
sl@0
    34
sl@0
    35
IMPORT_C void* operator new(unsigned int aSize,unsigned int aSize1) __NO_THROW;
sl@0
    36
sl@0
    37
IMPORT_C void* operator new[](unsigned int aSize) __NO_THROW;
sl@0
    38
sl@0
    39
IMPORT_C void operator delete(void* aPtr) __NO_THROW;
sl@0
    40
sl@0
    41
IMPORT_C void operator delete[](void* aPtr) __NO_THROW;
sl@0
    42
sl@0
    43
#endif // !__OPERATOR_NEW_DECLARED__
sl@0
    44
sl@0
    45
sl@0
    46
/* The following four overloads are not declared by the generic Symbian headers, so
sl@0
    47
 * do not need to be protected by __OPERATOR_NEW_DECLARED__.
sl@0
    48
 */
sl@0
    49
sl@0
    50
IMPORT_C void* operator new(unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
sl@0
    51
sl@0
    52
IMPORT_C void* operator new[](unsigned int aSize, const std::nothrow_t& aNoThrow) __NO_THROW;
sl@0
    53
sl@0
    54
IMPORT_C void operator delete(void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
sl@0
    55
sl@0
    56
IMPORT_C void operator delete[](void* aPtr, const std::nothrow_t& aNoThrow) __NO_THROW;
sl@0
    57
sl@0
    58
#endif