Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

elog.h

Go to the documentation of this file.
00001 // ELOG.H
00002 //
00003 // (c) 2000-2002 Alfred E. Heggestad
00004 //
00005 //    This program is free software; you can redistribute it and/or modify
00006 //    it under the terms of the GNU General Public License version 2 as
00007 //    published by the Free Software Foundation.
00008 //
00009 #if !defined(ELOG_H__)
00010 #define ELOG_H__
00011 
00019 //
00020 // normal debugging
00021 //
00022 #if defined(_DEBUG) || defined(__WINS__)
00023 
00024 #ifndef __E32DEF_H__
00025   #ifdef NULL
00026   #undef NULL
00027   #endif
00028 #endif
00029 
00030 #include <f32file.h>
00031 #define ELOG(a)           a
00032 #define ELOG1(a)          CEpocLogger::DoLog(a)
00033 #define ELOG2(a, b)       CEpocLogger::DoLog(a, (b) )
00034 #define ELOG3(a, b, c)    CEpocLogger::DoLog(a, b, c)
00035 #define ELOG4(a, b, c, d) CEpocLogger::DoLog(a, b, c, d)
00036 
00037 class CEpocLogger : public CBase
00038         {
00039   public:
00040         static void DoLog(TRefByValue<const TDesC8> aFmt, ...);
00041         };
00042 
00043 #else // no debugging
00044 
00045 #define ELOG(a)
00046 #define ELOG1(a)
00047 #define ELOG2(a, b)
00048 #define ELOG3(a, b, c)
00049 #define ELOG4(a, b, c, d)
00050 
00051 #endif
00052 
00053 
00054 #endif  // ELOG_H__

Generated on Tue Feb 8 04:13:57 2005 for Esidplay by doxygen 1.3.3