es40_debug.cpp File Reference


Detailed Description

Contains code for debugging.

X-1.4 Camiel Vanderhoeven 29-DEC-2007 Compileable with older compilers (VC 6.0).

X-1.3 Camiel Vanderhoeven 28-DEC-2007 Throw exceptions rather than just exiting when errors occur.

X-1.2 Camiel Vanderhoeven 15-NOV-2007 Added newline at end to avoid warnings.

X-1.1 Camiel Vanderhoeven 14-NOV-2007 Initial creation.

Author:
Camiel Vanderhoeven (camiel@camicom.com / http://www.camicom.com)

Definition in file es40_debug.cpp.

#include "StdAfx.h"

Go to the source code of this file.

Functions

static void va_debug (va_list argp, char *fmt)
void debug_indentation (int diff)
void debug (char *fmt,...)
void fatal (char *fmt,...)

Variables

int quiet_mode = 0
static int debug_indent = 0
static int debug_currently_at_start_of_line = 1


Function Documentation

void debug ( char *  fmt,
  ... 
)

Definition at line 116 of file es40_debug.cpp.

References quiet_mode, and va_debug().

void debug_indentation ( int  diff  ) 

Definition at line 104 of file es40_debug.cpp.

References debug_indent.

void fatal ( char *  fmt,
  ... 
)

Definition at line 134 of file es40_debug.cpp.

References va_debug().

static void va_debug ( va_list  argp,
char *  fmt 
) [static]

Definition at line 70 of file es40_debug.cpp.

References DEBUG_BUFSIZE, debug_currently_at_start_of_line, and debug_indent.

Referenced by debug(), and fatal().


Variable Documentation

Definition at line 63 of file es40_debug.cpp.

Referenced by va_debug().

int debug_indent = 0 [static]

Definition at line 62 of file es40_debug.cpp.

Referenced by debug_indentation(), and va_debug().

int quiet_mode = 0

Definition at line 60 of file es40_debug.cpp.

Referenced by debug().


SourceForge.net Logo
Project space on SourceForge.net