DSC Engine
Loading...
Searching...
No Matches
Functions
log.hpp File Reference

send debug messages to the emulator More...

Go to the source code of this file.

Functions

void DSC::Debug::log (const char *message,...)
 Sends a log message to the emulator. More...
 
void DSC::Debug::warn (const char *message,...)
 Sends a warning message to the emulator. More...
 
void DSC::Debug::error (const char *message,...)
 Sends an error message to the emulator. More...
 

Detailed Description

send debug messages to the emulator

Function Documentation

◆ error()

void DSC::Debug::error ( const char *  message,
  ... 
)

Sends an error message to the emulator.

Parameters
[in]messagelog message, allows printf-like wildcards
[in]...wildcard arguments

See DSC::Debug::log() for more details

◆ log()

void DSC::Debug::log ( const char *  message,
  ... 
)

Sends a log message to the emulator.

Parameters
[in]messagelog message, allows printf-like wildcards
[in]...wildcard arguments

Allowed wildcards:

  • %i : signed integer
  • %u : unsigned integer
  • %s : character string
  • %b : short boolean (T/F)
  • %B : long boolean (True/False)
  • %x : lowercase hex (123ab)
  • %X : uppercase hex (123AB)

Usage:

int x=2;
DSC::Debug::log("My int = %i", x)

◆ warn()

void DSC::Debug::warn ( const char *  message,
  ... 
)

Sends a warning message to the emulator.

Parameters
[in]messagelog message, allows printf-like wildcards
[in]...wildcard arguments

See DSC::Debug::log() for more details