Typedefs | Functions | Variables
debug.c File Reference

Simple debugging functions. More...

#include "angband.h"
#include "debug.h"


typedef void debug_hook (const char *)


static void to_stderr (const char *out)
 Simple printing to stderr.
void debug (const char *fmt,...)
 Output some text.


static debug_hookd_out = to_stderr

Detailed Description

Simple debugging functions.

Copyright (c) 2007 Andi Sidwell

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Typedef Documentation

typedef void debug_hook(const char *)

Function Documentation

void debug ( const char *  fmt,

Output some text.

Send the formatted string to whatever debug console or output is set up.

Amongst other things, this should use the message package so that ports can display e.g. a debugging window, or send the output to file.

References buffer, d_out, and vstrnfmt().

static void to_stderr ( const char *  out)

Simple printing to stderr.

Variable Documentation

debug_hook* d_out = to_stderr

Referenced by debug().