mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-21 17:55:13 -05:00
24 lines
573 B
C
24 lines
573 B
C
#ifndef DEBUGGING_H
|
|
#define DEBUGGING_H
|
|
|
|
#ifdef LOGGING_ENABLED
|
|
|
|
#define LOG_MESSAGE_MAX_LENGTH 1024
|
|
#include "charcode.h"
|
|
#include "string_gf.h"
|
|
|
|
// Prints to the emulator's standard output, with printf formatting
|
|
__attribute__((format(printf, 1, 2))) void EmulatorPrintf(const char *text, ...);
|
|
|
|
// Prints to the emulator's standard output, with printf formatting, but adds a marker prefix and a newline at the end
|
|
__attribute__((format(printf, 1, 2))) void EmulatorLog(const char *text, ...);
|
|
|
|
#else
|
|
|
|
#define EmulatorPrintf(...)
|
|
#define EmulatorLog(...)
|
|
|
|
#endif
|
|
|
|
#endif
|