epoc32/include/usb/usblogger.mmh
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/usb/usblogger.mmh	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,67 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* When checking this file into perforce, ensure that
    1.19 +* LOGGING IS DISABLED FOR RELEASE BUILDS.
    1.20 +* This file is not to be used outside Symbian.
    1.21 +* It is largely a copy of commsdebugutility.mmh.
    1.22 +* When the new logger comes in that provides the functionality we want 
    1.23 +* (specifically, 'connected' logging using TLS), we can remove our own logger 
    1.24 +* dll entirely, including this file. [We'll still possibly need a header with 
    1.25 +* our nice function entry/exit, leave and panic macros though.]
    1.26 +*
    1.27 +*/
    1.28 +
    1.29 +// Uncomment next line to temporarily engage logging for release builds.
    1.30 +//#define __FLOGGER_UREL
    1.31 +// Comment next line to temporarily disengage logging for debug builds
    1.32 +#define __FLOGGER_UDEB
    1.33 +
    1.34 +// Determine whether, and how, flogger is to be included
    1.35 +#ifdef __FLOGGER_UREL
    1.36 +	#ifdef __FLOGGER_UDEB
    1.37 +	#define __FLOGGER_INCLUDED
    1.38 +	MACRO __FLOG_UREL
    1.39 +	#endif
    1.40 +#endif
    1.41 +#ifdef __FLOGGER_UREL
    1.42 +	#ifndef __FLOGGER_UDEB
    1.43 +	#define __FLOGGER_INCLUDED
    1.44 +	MACRO __FLOG_UREL
    1.45 +	MACRO __FLOG_NO_UDEB
    1.46 +	#endif
    1.47 +#endif
    1.48 +#ifndef __FLOGGER_UREL
    1.49 +	#ifndef __FLOGGER_UDEB
    1.50 +	MACRO __FLOG_NO_UDEB
    1.51 +	#endif
    1.52 +#endif
    1.53 +#ifndef __FLOGGER_UREL
    1.54 +	#ifdef __FLOGGER_UDEB
    1.55 +	#define __FLOGGER_INCLUDED
    1.56 +	#define __FLOGGER_DEBUGGERLIBRARY
    1.57 +	#endif
    1.58 +#endif
    1.59 +
    1.60 +
    1.61 +#ifdef __FLOGGER_INCLUDED
    1.62 +	#ifndef __FLOGGER_SUPPRESS_LIBRARY
    1.63 +		#ifdef __FLOGGER_DEBUGGERLIBRARY
    1.64 +			DEBUGLIBRARY usblogger.lib
    1.65 +		#else
    1.66 +			LIBRARY usblogger.lib
    1.67 +		#endif
    1.68 +	#endif
    1.69 +#endif
    1.70 +