|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef JDEBUG_OMJ_H |
|
19 #define JDEBUG_OMJ_H |
|
20 |
|
21 #ifdef LOGGING_ON |
|
22 #include <stdio.h> |
|
23 |
|
24 #define DEBUG( msg ) printf(msg "\n"); |
|
25 #define DEBUG_STR( msg, string ) printf( msg "\n", string); |
|
26 #define DEBUG_STR_INT( msg, string, num ) printf(msg "\n", string, num); |
|
27 #define DEBUG_INT( msg, num ) printf(msg, "\n", num); |
|
28 #define DEBUG_INT2( msg, num, num2 ) printf(msg "\n", num, num2 ); |
|
29 #define DEBUG_INT3( msg, num, num2, num3 ) printf(msg "\n", num, num2, num3 ); |
|
30 #define DEBUG_INT4( msg, num, num2, num3, num4 ) printf(msg "\n", num, num2, num3, num4); |
|
31 #define DEBUG_INT5( msg, num, num2, num3, num4, num5) printf(msg "\n", num, num2, num3, num4, num5); |
|
32 #define DEBUG_INT6( msg, num, num2, num3, num4, num5, num6 ) printf(msg "\n", num, num2, num3, num4, num5, num6 ); |
|
33 |
|
34 #else // LOGGING_ON |
|
35 |
|
36 #define DEBUG( msg ) |
|
37 #define DEBUG_STR( msg, string ) |
|
38 #define DEBUG_STR_INT( msg, string ) |
|
39 #define DEBUG_INT( msg, num ) |
|
40 #define DEBUG_INT2( msg, num, num2 ) |
|
41 #define DEBUG_INT3( msg, num, num2, num3 ) |
|
42 #define DEBUG_INT4( msg, num, num2, num3, num4 ) |
|
43 #define DEBUG_INT5( msg, num, num2, num3, num4, num5 ) |
|
44 #define DEBUG_INT6( msg, num, num2, num3, num4, num5, num6 ) |
|
45 #endif // LOGGING_ON |
|
46 |
|
47 #define ERROR( msg ) printf(msg "\n"); |
|
48 #define ERROR_INT( msg, num ) printf(msg "\n", num); |
|
49 #define ERROR_STR( msg, str ) printf(msg "\n", str); |
|
50 |
|
51 #endif // JDEBUG_OMJ_H |
|
52 |