Update contrib.
2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
25 #if (!defined __TRAPLOG_H__)
30 #define TRAP_LOG(_err, _call) \
32 TInt& __eref = _err; \
34 TRAP(__eref, _call); \
35 if(__eref != KErrNone) \
37 INFO_PRINTF2(_L("*** ERROR: TRAP_LOG Leave - %d"), __eref); \
38 User::Leave(__eref); \
42 #define TRAPD_LOG(_err, _call) \
46 if(_err != KErrNone) \
48 INFO_PRINTF2(_L("*** ERROR: TRAPD_LOG Leave - %d"), _err); \
53 #endif //__TRAPLOG_H__