sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* Client-side debug-mode panic alerts the SCS implementor if they
|
sl@0
|
16 |
* attempt to construct an invalid function identifier.
|
sl@0
|
17 |
*
|
sl@0
|
18 |
*/
|
sl@0
|
19 |
|
sl@0
|
20 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
@file
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
|
sl@0
|
25 |
#include <scs/scsclient.h>
|
sl@0
|
26 |
|
sl@0
|
27 |
#include <scs/scscommon.h>
|
sl@0
|
28 |
#include "scsserverconstants.h"
|
sl@0
|
29 |
|
sl@0
|
30 |
#ifdef _DEBUG
|
sl@0
|
31 |
#ifdef _BullseyeCoverage
|
sl@0
|
32 |
static const char *const bull1="BullseyeCoverage save off";
|
sl@0
|
33 |
#endif
|
sl@0
|
34 |
void ScsImpl::ClientSidePanic(ScsImpl::TScsClientPanic aReason)
|
sl@0
|
35 |
/**
|
sl@0
|
36 |
Panic the current thread with category KScsClientPanicCat and the
|
sl@0
|
37 |
supplied panic reason.
|
sl@0
|
38 |
|
sl@0
|
39 |
This function is designed to catch logic errors in the SCS client.
|
sl@0
|
40 |
It is not defined for release builds.
|
sl@0
|
41 |
|
sl@0
|
42 |
@param aReason Reason with which the current thread will be panicked.
|
sl@0
|
43 |
@see KScsClientPanicCat
|
sl@0
|
44 |
*/
|
sl@0
|
45 |
{
|
sl@0
|
46 |
User::Panic(ScsImpl::KScsClientPanicCat, aReason);
|
sl@0
|
47 |
}
|
sl@0
|
48 |
#ifdef _BullseyeCoverage
|
sl@0
|
49 |
static const char * const bull2="BullseyeCoverage restore";
|
sl@0
|
50 |
#endif
|
sl@0
|
51 |
#endif // #ifdef _DEBUG
|
sl@0
|
52 |
|