Files
SingularityViewer/indra/libndhacd/nd_EnterExitTracer.h
2013-01-13 03:23:56 +01:00

44 lines
1.3 KiB
C++

#ifndef ND_ENTEREXITTRACER_H
#define ND_ENTEREXITTRACER_H
/**
* copyright 2011 sl.nicky.ml@googlemail.com
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License only.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "ndConvexDecomposition.h"
class EnterExitTracer
{
char const *mFunc;
ndConvexDecompositionTracer *mTracer;
void doTrace( char const *aPrefix );
public:
EnterExitTracer( char const *aFunc, ndConvexDecompositionTracer *aTracer );
~EnterExitTracer( );
};
#ifdef __GNUC__
#define TRACE_FUNC(ATRACER) EnterExitTracer oETTrace( __PRETTY_FUNCTION__, ATRACER );
#else
#define TRACE_FUNC(ATRACER) EnterExitTracer oETTrace( __FUNCTION__, ATRACER );
#endif
#endif