wavelength 1.0.0
Loading...
Searching...
No Matches
debug.h File Reference
#include <memory>
#include "os/binstream.h"
#include "os/prnstream.h"
Include dependency graph for debug.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Debug
 Stream for diagnostic text, written to standard output or to a log file. More...

Functions

void DebugPrint (const char *pszFormat,...)
 Format a diagnostic message that the shipped build discards.
void DebugWarn (const char *pszFormat,...)
 Format a warning that the shipped build discards.
void DebugNotify (const char *pszFormat,...)
 Format a notice that the shipped build discards.
void DebugError (const char *pszFormat,...)
 Format an error that the shipped build discards.

Variables

Debug TheDebug
 The diagnostic stream.

Function Documentation

◆ DebugPrint()

void DebugPrint ( const char * pszFormat,
... )

Format a diagnostic message that the shipped build discards.

The body is empty. Each of the 140 call sites still evaluates its arguments and makes the call.

Parameters
pszFormatThe printf format.
Ghidra address:
NTSC-U/C: 0x00333b08
Ghidra address:
PAL: 0x003a10b8

◆ DebugWarn()

void DebugWarn ( const char * pszFormat,
... )

Format a warning that the shipped build discards.

The body is empty. Each of the 159 call sites still evaluates its arguments and makes the call. The callers pass messages about invalid data and unsupported requests. The name is inferred.

Parameters
pszFormatThe printf format.
Ghidra address:
NTSC-U/C: 0x00333d50
Ghidra address:
PAL: 0x003a1300

◆ DebugNotify()

void DebugNotify ( const char * pszFormat,
... )

Format a notice that the shipped build discards.

The body is empty. The callers pass reports of missing data, skipped objects, and failed loads. The name is inferred.

Parameters
pszFormatThe printf format.
Ghidra address:
NTSC-U/C: 0x00339f48
Ghidra address:
PAL: 0x003a7480

◆ DebugError()

void DebugError ( const char * pszFormat,
... )

Format an error that the shipped build discards.

The body is empty. The callers pass errors in the song files and the start-up configuration that no error handler takes. The name is inferred.

Parameters
pszFormatThe printf format.
Ghidra address:
NTSC-U/C: 0x00339f80
Ghidra address:
PAL: 0x003a74b8

Variable Documentation

◆ TheDebug

Debug TheDebug
extern

The diagnostic stream.

Ghidra address:
NTSC-U/C: 0x0047fa78