Angband
Typedefs | Functions | Variables
debug.c File Reference

Simple debugging functions. More...

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

Typedefs

typedef void debug_hook (const char *)

Functions

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

Variables

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)
static

Simple printing to stderr.

Variable Documentation

debug_hook* d_out = to_stderr
static

Referenced by debug().