equal
deleted
inserted
replaced
|
1 // Copyright (c) 1995-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\common\arm\cgcchelp.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 #include "../common.h" |
|
19 #ifdef __KERNEL_MODE__ |
|
20 #include <nkern.h> |
|
21 #endif |
|
22 |
|
23 extern "C" { |
|
24 extern "C" void __division_by_zero() |
|
25 { |
|
26 DIVISION_BY_ZERO(); |
|
27 } |
|
28 |
|
29 #ifdef __GCCV3__ |
|
30 EXPORT_C int __cxa_pure_virtual() |
|
31 #else |
|
32 EXPORT_C int __pure_virtual() |
|
33 #endif |
|
34 // |
|
35 // Gets called for any unreplaced pure virtual methods. |
|
36 // |
|
37 { |
|
38 #ifdef __STANDALONE_NANOKERNEL__ |
|
39 __crash(); |
|
40 #else |
|
41 Panic(EPureVirtualCalled); |
|
42 #endif |
|
43 return 0; |
|
44 } |
|
45 } |
|
46 |