2003-08-15 18:00:22 +00:00
|
|
|
// Residual - Virtual machine to run LucasArts' 3D adventure games
|
2005-01-01 10:23:18 +00:00
|
|
|
// Copyright (C) 2003-2005 The ScummVM-Residual Team (www.scummvm.org)
|
2003-08-15 18:00:22 +00:00
|
|
|
//
|
|
|
|
// 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; either
|
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
2004-02-01 12:38:33 +00:00
|
|
|
#include "bits.h"
|
|
|
|
|
2003-08-15 19:41:26 +00:00
|
|
|
#ifndef DEBUG_H
|
|
|
|
#define DEBUG_H
|
2005-01-01 12:27:57 +00:00
|
|
|
|
2005-07-10 18:57:27 +00:00
|
|
|
enum enDebugLevels {
|
|
|
|
DEBUG_NONE,
|
|
|
|
DEBUG_NORMAL,
|
|
|
|
DEBUG_WARN,
|
|
|
|
DEBUG_ERROR,
|
|
|
|
DEBUG_FUNC,
|
|
|
|
DEBUG_BITMAPS,
|
|
|
|
DEBUG_MODEL,
|
|
|
|
DEBUG_STUB,
|
|
|
|
DEBUG_SMUSH,
|
2005-07-17 23:40:22 +00:00
|
|
|
DEBUG_IMUSE,
|
2005-07-10 18:57:27 +00:00
|
|
|
DEBUG_CHORES,
|
|
|
|
DEBUG_ALL
|
|
|
|
};
|
|
|
|
extern enDebugLevels debugLevel;
|
2005-08-10 08:33:45 +00:00
|
|
|
extern const char *debug_levels[];
|
|
|
|
extern const char *debug_descriptions[];
|
|
|
|
|
2003-09-21 09:51:59 +00:00
|
|
|
// Hacky toggles for experimental / debug code (defined/set in main.cpp)
|
2005-01-10 09:07:46 +00:00
|
|
|
extern bool ZBUFFER_GLOBAL, SHOWFPS_GLOBAL;
|
2003-08-15 18:00:22 +00:00
|
|
|
|
|
|
|
void warning(const char *fmt, ...);
|
|
|
|
void error(const char *fmt, ...);
|
|
|
|
|
2004-02-01 12:38:33 +00:00
|
|
|
const char *tag2str(uint32 tag);
|
|
|
|
void hexdump(const byte * data, int len, int bytesPerLine);
|
2005-01-01 12:27:57 +00:00
|
|
|
|
2003-08-15 18:00:22 +00:00
|
|
|
#endif
|