2006-04-02 14:20:45 +00:00
|
|
|
/* Residual - Virtual machine to run LucasArts' 3D adventure games
|
2008-06-13 14:57:47 +00:00
|
|
|
*
|
|
|
|
* Residual is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the AUTHORS
|
|
|
|
* file distributed with this source distribution.
|
2006-04-02 14:20:45 +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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
*
|
|
|
|
* $URL$
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
*/
|
2003-08-15 18:00:22 +00:00
|
|
|
|
2008-06-12 12:08:15 +00:00
|
|
|
#include "common/sys.h"
|
2004-02-01 12:38:33 +00:00
|
|
|
|
2008-01-26 11:47:23 +00:00
|
|
|
#ifndef COMMON_DEBUG_H
|
|
|
|
#define COMMON_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,
|
2009-05-23 13:59:42 +00:00
|
|
|
DEBUG_LUA,
|
2005-07-10 18:57:27 +00:00
|
|
|
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
|
|
|
|
};
|
2009-05-25 06:49:57 +00:00
|
|
|
|
|
|
|
namespace Common {
|
|
|
|
class String;
|
|
|
|
|
|
|
|
enDebugLevels getDebugLevel();
|
|
|
|
}
|
|
|
|
|
2005-08-10 08:33:45 +00:00
|
|
|
extern const char *debug_levels[];
|
|
|
|
extern const char *debug_descriptions[];
|
|
|
|
|
2003-08-15 18:00:22 +00:00
|
|
|
void error(const char *fmt, ...);
|
2009-04-04 17:14:52 +00:00
|
|
|
|
|
|
|
#ifdef DISABLE_TEXT_CONSOLE
|
|
|
|
|
|
|
|
inline int printf(const char *s, ...) { return 0; }
|
|
|
|
|
|
|
|
inline void warning(const char *s, ...) {}
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
void warning(const char *fmt, ...);
|
2009-01-13 22:25:33 +00:00
|
|
|
void debug(int level, const char *s, ...);
|
|
|
|
void debug(const char *s, ...);
|
2003-08-15 18:00:22 +00:00
|
|
|
|
|
|
|
#endif
|
2009-04-04 17:14:52 +00:00
|
|
|
|
|
|
|
#endif
|