mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Importing EDE2 code to svn... NOTE: It doesn't compile! Stuff thats broken: edewm, eworkpanel, eiconman,
emenueditor
This commit is contained in:
42
edewm/Tracers.h
Normal file
42
edewm/Tracers.h
Normal 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
|
Reference in New Issue
Block a user