sdl-audio/log.h

18 lines
236 B
C
Raw Normal View History

2024-10-10 20:11:57 +08:00
// Chat GPT code
#ifndef LOG_H
#define LOG_H
2024-11-12 19:22:55 +08:00
#define LOG_MAX_REPEAT 5
2024-10-10 20:11:57 +08:00
typedef enum {
LOG_INFO,
LOG_WARNING,
LOG_ERROR
} LogLevel;
const char* get_current_time();
void log_message(LogLevel level, const char* format, ...);
#endif