2007-05-30 21:56:52 +00:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
2005-08-16 17:15:37 +00:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
* This program 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 General Public License for more details.
|
|
|
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
2005-10-18 01:30:26 +00:00
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-08-16 17:15:37 +00:00
|
|
|
*
|
2006-02-11 12:47:47 +00:00
|
|
|
* $URL$
|
|
|
|
* $Id$
|
2005-08-16 17:15:37 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef TRACE_H
|
|
|
|
#define TRACE_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <psptypes.h>
|
|
|
|
#include <pspkernel.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <pspdebug.h>
|
|
|
|
|
2009-09-23 16:11:23 +00:00
|
|
|
// Use these defines for debugging
|
|
|
|
|
|
|
|
//#define __PSP_DEBUG__
|
|
|
|
//#define __PSP_DEBUG_SUSPEND__
|
|
|
|
|
2005-08-16 17:15:37 +00:00
|
|
|
void PSPDebugTrace (const char *filename, const char *format, ...);
|
|
|
|
void PSPDebugTrace (const char *format, ...);
|
|
|
|
|
2009-09-23 16:11:23 +00:00
|
|
|
#ifdef __PSP_DEBUG_SUSPEND__
|
|
|
|
#define PSPDebugSuspend(format,...) PSPDebugTrace(format, ## __VA_ARGS__)
|
|
|
|
#else
|
|
|
|
#define PSPDegbugSuspend(x)
|
|
|
|
#define PSPDebugSuspend(format,...)
|
|
|
|
#endif /* __PSP_DEBUG_SUSPEND__ */
|
|
|
|
|
|
|
|
|
2005-08-16 17:15:37 +00:00
|
|
|
#endif // TRACE_H
|
|
|
|
|