pokeplatinum/include/debug.h
2025-12-14 10:36:00 -05:00

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