sl@0: /* sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Client-side debug-mode panic alerts the SCS implementor if they sl@0: * attempt to construct an invalid function identifier. sl@0: * sl@0: */ sl@0: sl@0: sl@0: /** sl@0: @file sl@0: */ sl@0: sl@0: #include sl@0: sl@0: #include sl@0: #include "scsserverconstants.h" sl@0: sl@0: #ifdef _DEBUG sl@0: #ifdef _BullseyeCoverage sl@0: static const char *const bull1="BullseyeCoverage save off"; sl@0: #endif sl@0: void ScsImpl::ClientSidePanic(ScsImpl::TScsClientPanic aReason) sl@0: /** sl@0: Panic the current thread with category KScsClientPanicCat and the sl@0: supplied panic reason. sl@0: sl@0: This function is designed to catch logic errors in the SCS client. sl@0: It is not defined for release builds. sl@0: sl@0: @param aReason Reason with which the current thread will be panicked. sl@0: @see KScsClientPanicCat sl@0: */ sl@0: { sl@0: User::Panic(ScsImpl::KScsClientPanicCat, aReason); sl@0: } sl@0: #ifdef _BullseyeCoverage sl@0: static const char * const bull2="BullseyeCoverage restore"; sl@0: #endif sl@0: #endif // #ifdef _DEBUG sl@0: