equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-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 the License "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 * Client-side debug-mode panic alerts the SCS implementor if they |
|
16 * attempt to construct an invalid function identifier. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 */ |
|
24 |
|
25 #include <scs/scsclient.h> |
|
26 |
|
27 #include <scs/scscommon.h> |
|
28 #include "scsserverconstants.h" |
|
29 |
|
30 #ifdef _DEBUG |
|
31 #ifdef _BullseyeCoverage |
|
32 static const char *const bull1="BullseyeCoverage save off"; |
|
33 #endif |
|
34 void ScsImpl::ClientSidePanic(ScsImpl::TScsClientPanic aReason) |
|
35 /** |
|
36 Panic the current thread with category KScsClientPanicCat and the |
|
37 supplied panic reason. |
|
38 |
|
39 This function is designed to catch logic errors in the SCS client. |
|
40 It is not defined for release builds. |
|
41 |
|
42 @param aReason Reason with which the current thread will be panicked. |
|
43 @see KScsClientPanicCat |
|
44 */ |
|
45 { |
|
46 User::Panic(ScsImpl::KScsClientPanicCat, aReason); |
|
47 } |
|
48 #ifdef _BullseyeCoverage |
|
49 static const char * const bull2="BullseyeCoverage restore"; |
|
50 #endif |
|
51 #endif // #ifdef _DEBUG |
|
52 |