71
|
1 |
/*
|
|
2 |
* Copyright (c) 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 "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: Debug print macros*
|
|
15 |
*/
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef MPXLOG_H
|
|
21 |
#define MPXLOG_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <e32std.h>
|
|
25 |
#include <e32svr.h>
|
|
26 |
#include <e32property.h>
|
|
27 |
|
|
28 |
#include <mpxvideo_debug.h>
|
|
29 |
|
|
30 |
#ifdef _DEBUG
|
|
31 |
|
|
32 |
#define MPX_FUNC(fn) TFunctionTrace _s(_L(fn));
|
|
33 |
#define MPX_FUNC_EX(fn) TFunctionTrace _s(_L(fn), this);
|
|
34 |
|
|
35 |
// print out (index, id) for each level and the first 15 ids at top level
|
|
36 |
#define MPX_DEBUG_PATH(aPath)
|
|
37 |
#define MPX_DEBUG_THREAD(ss)
|
|
38 |
#define MPX_DEBUG_PATH(aPath)
|
|
39 |
#define MPX_DEBUG_THREAD(ss)
|
|
40 |
|
|
41 |
#else // _DEBUG
|
|
42 |
|
|
43 |
#define MPX_FUNC(fn)
|
|
44 |
#define MPX_FUNC_EX(fn)
|
|
45 |
|
|
46 |
// print out (index, id) for each level and the first 15 ids at top level
|
|
47 |
#define MPX_DEBUG_PATH(aPath)
|
|
48 |
#define MPX_DEBUG_THREAD(ss)
|
|
49 |
#define MPX_DEBUG_PATH(aPath)
|
|
50 |
#define MPX_DEBUG_THREAD(ss)
|
|
51 |
|
|
52 |
#endif
|
|
53 |
|
|
54 |
#endif // MPXLOG_H
|
|
55 |
|
|
56 |
// End of File
|