1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Logging macros for use in debug subsystem
25 #ifndef DEBUG_LOGGING_H
26 #define DEBUG_LOGGING_H
29 * Debug messages are only generated for debug builds.
35 #define LOG_DES(des) {if(des.Length() > 0) {RBuf buf; buf.CreateL(des); char *ptr = (char*)buf.Collapse().PtrZ(); LOG_MSG2("\n(%s)\n", ptr); buf.Close();} }
37 #define LOG_MSG( a ) RDebug::Printf( a )
38 #define LOG_MSG2( a, b ) RDebug::Printf( a, b )
39 #define LOG_MSG3( a, b, c ) RDebug::Printf( a, b, c )
40 #define LOG_MSG4( a, b, c, d ) RDebug::Printf( a, b, c, d )
41 #define LOG_MSG5( a, b, c, d, e ) RDebug::Printf( a, b, c, d, e )
47 #define LOG_MSG2( a, b )
48 #define LOG_MSG3( a, b, c )
49 #define LOG_MSG4( a, b, c, d )
50 #define LOG_MSG5( a, b, c, d, e )
54 #endif //DEBUG_LOGGING_H