|
1 /* |
|
2 * Copyright (c) 2008 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: Audio Stubs - Common definitions |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef DEVSOUNDEXTENSIONSTUBS_COMMON_H_ |
|
19 #define DEVSOUNDEXTENSIONSTUBS_COMMON_H_ |
|
20 |
|
21 #define KUidDevsoundExtensionStubsInterface 0x10207C49 |
|
22 |
|
23 #define RET_ERR_IF_ERR(err) if ( err != KErrNone) return err; |
|
24 |
|
25 #ifdef _DEBUG |
|
26 #include "e32debug.h" |
|
27 |
|
28 #define DB_IN RDebug::Printf("%s>ENTER", __PRETTY_FUNCTION__) |
|
29 #define DB_OUT RDebug::Printf("%s>EXIT", __PRETTY_FUNCTION__) |
|
30 #define DB_IF_ERR(err) if (err != KErrNone) RDebug::Printf( "%s>BREAK[%d]", __PRETTY_FUNCTION__, err ) |
|
31 |
|
32 #define DB0(str) RDebug::Print(str, this) |
|
33 #define DB1(str, val1) RDebug::Print(str, this, val1) |
|
34 #define DB2(str, val1, val2) RDebug::Print(str, this, val1, val2) |
|
35 |
|
36 #define DB_CUSTOM0(str) RDebug::Print(str) |
|
37 #define DB_CUSTOM1(str, val1) RDebug::Print(str, val1) |
|
38 #define DB_CUSTOM2(str, val1, val2) RDebug::Print(str, val1, val2) |
|
39 |
|
40 #else |
|
41 |
|
42 #define DB_IN |
|
43 #define DB_OUT |
|
44 #define DB_IF_ERR(err) |
|
45 #define DB0(str) |
|
46 #define DB1(str, val1) |
|
47 #define DB2(str, val1, val2) |
|
48 #define DB_CUSTOM0(str) |
|
49 #define DB_CUSTOM1(str, val1) |
|
50 #define DB_CUSTOM2(str, val1, val2) |
|
51 #endif //_DEBUG |
|
52 |
|
53 |
|
54 #endif /*DEVSOUNDEXTENSIONSTUBS_COMMON_H_*/ |