2010-12-01 23:04:18 +00:00
|
|
|
/**
|
2011-06-14 17:08:48 +00:00
|
|
|
\defgroup debug Debugging Functions
|
|
|
|
\{
|
2010-12-01 23:04:18 +00:00
|
|
|
*/
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/*
|
2002-08-17 05:27:34 +00:00
|
|
|
Copyright (C) 2002 Bill Currie <taniwha@quakeforge.net>
|
|
|
|
Copyright (C) 2002 Jeff Teunissen <deek@quakeforge.net>
|
|
|
|
|
|
|
|
This file is part of the Ruamoko Standard Library.
|
|
|
|
|
|
|
|
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 program; if not, write to:
|
|
|
|
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
59 Temple Place - Suite 330
|
|
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
2010-12-01 23:04:18 +00:00
|
|
|
|
2002-08-15 21:00:51 +00:00
|
|
|
#ifndef __ruamoko_debug_h
|
|
|
|
#define __ruamoko_debug_h
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Tell the engine to abort (stop) code processing.
|
|
|
|
\note In QuakeC, this was break().
|
|
|
|
*/
|
|
|
|
@extern void abort (void);
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Tell the engine to print all edicts (entities)
|
|
|
|
*/
|
|
|
|
@extern void coredump (void);
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Enable instruction trace in the interpreter
|
|
|
|
*/
|
|
|
|
@extern void traceon (void);
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
traceoff
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
Disable instruction trace in the interpreter
|
|
|
|
*/
|
|
|
|
@extern void traceoff (void);
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Print all information on an entity to the console
|
|
|
|
*/
|
|
|
|
@extern void eprint (entity e);
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Print a string to the console if the "developer" Cvar is nonzero.
|
|
|
|
*/
|
|
|
|
@extern void dprint (string str);
|
2004-04-28 00:42:38 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Abort (crash) the server. "str" is the message the server crashes with.
|
|
|
|
*/
|
|
|
|
@extern void error (string str);
|
2004-04-28 00:42:38 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
/**
|
|
|
|
Prints info on the "self" ENTITY (not object), and error message "e".
|
|
|
|
The entity is freed.
|
|
|
|
*/
|
|
|
|
@extern void objerror (string e);
|
2002-08-15 06:56:37 +00:00
|
|
|
|
2011-06-14 17:08:48 +00:00
|
|
|
//\}
|
2002-08-17 05:27:34 +00:00
|
|
|
#endif //__ruamoko_debug_h
|