Importing EDE2 code to svn... NOTE: It doesn't compile! Stuff thats broken: edewm, eworkpanel, eiconman,

emenueditor
This commit is contained in:
Vedran Ljubovic
2006-08-20 18:43:09 +00:00
commit 65018f75b7
1004 changed files with 88271 additions and 0 deletions

42
edewm/Tracers.h Normal file
View File

@ -0,0 +1,42 @@
/*
* $Id: Tracers.h 1671 2006-07-11 14:07:43Z karijes $
*
* Edewm, window manager
* Part of Equinox Desktop Environment (EDE).
* Copyright (c) 2000-2006 EDE Authors.
*
* This program is licenced under terms of the
* GNU General Public Licence version 2 or newer.
* See COPYING for details.
*/
#ifndef __TRACERS_H__
#define __TRACERS_H__
#include "debug.h"
#ifdef _DEBUG
class FunctionTracer
{
private:
const char* func;
public:
FunctionTracer(const char* f) : func(f)
{
if(func)
EPRINTF("Function [+]: \"%s\"\n", func);
}
~FunctionTracer()
{
if(func)
EPRINTF("Function [-]: \"%s\"\n", func);
}
};
#define TRACE_FUNCTION(name) FunctionTracer foo(name)
#else
#define TRACE_FUNCTION(name) (void)0
#endif // _DEBUG
#endif