Example Application Guide

 

geoprofilesdebug.h

00001 /*
00002 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
00003 * All rights reserved.
00004 * This component and the accompanying materials are made available
00005 * under the terms of the License "Eclipse Public License v1.0"
00006 * which accompanies this distribution, and is available
00007 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 *
00009 * Initial Contributors:
00010 * Nokia Corporation - initial contribution.
00011 *
00012 * Contributors:
00013 *
00014 * Description:  Geo Profile Debug
00015 *
00016 */
00017 
00018 
00019 #ifndef _GEOPROFILESDEBUG_H_
00020 #define _GEOPROFILESDEBUG_H_
00021 
00022 // INCLUDES
00023 #include <e32std.h>
00024 #define GEOPROFILE_DEBUG
00025 
00026 // MACROS
00027 #define DEBUG(TEXT)                                 { \
00028                                                                             _LIT( KText, #TEXT ); \
00029                                                                             Debug(KText); \
00030                                                                             }
00031                                                                          
00032 #define DEBUG1(TEXT, ARG1)                          { \
00033                                                                             _LIT( KText, #TEXT ); \
00034                                                                             Debug( KText, (ARG1) ); \
00035                                                                             }
00036                                                                          
00037 #define DEBUG2(TEXT, ARG1, ARG2)        { \
00038                                                                             _LIT( KText, #TEXT ); \
00039                                                                             Debug( KText,(ARG1), (ARG2) ); \
00040                                                                             }
00041                                                                          
00042 #define DEBUG3(TEXT, ARG1, ARG2, ARG3)  { \
00043                                                                             _LIT( KText, #TEXT ); \
00044                                                                             Debug( KText, (ARG1), (ARG2), (ARG3) ); \
00045                                                                             }
00046 
00047 
00048 void Debug( TRefByValue<const TDesC> aText, ...);
00049 
00050 
00051 #ifdef GEOPROFILE_DEBUG
00052                                                                          
00053 #define GEOPROFILEDEBUG( TEXT )                     DEBUG( TEXT);
00054 #define GEOPROFILEDEBUG1( TEXT, ARG1 )              DEBUG1( TEXT, ARG1 );
00055 #define GEOPROFILEDEBUG2( TEXT, ARG1, ARG2 )        DEBUG2( TEXT, ARG1, ARG2 );
00056 #define GEOPROFILEDEBUG3( TEXT, ARG1, ARG2, ARG3)   DEBUG3( TEXT, ARG1, ARG2, ARG3 );
00057 
00058 #else
00059 
00060 #define GEOPROFILEDEBUG( TEXT )                     ;
00061 #define GEOPROFILEDEBUG1( TEXT, ARG1 )              ;
00062 #define GEOPROFILEIDEBUG2( TEXT, ARG1, ARG2 )       ;
00063 #define GEOPROFILEDEBUG3( TEXT, ARG1, ARG2, ARG3 )  ;
00064 
00065 #endif
00066 
00067 #endif // _GEOPROFILESDEBUG_H_

© Nokia 2009

Back to top