From fb8361d11bdf8c21d2e9d3b94bae444089ba0d96 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 26 Sep 2025 17:58:31 +0200 Subject: log read and write failures --- include/log.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/log.hpp') diff --git a/include/log.hpp b/include/log.hpp index 5efad6e..4e3f4f5 100644 --- a/include/log.hpp +++ b/include/log.hpp @@ -19,6 +19,7 @@ #include "timer.h" #include "imgui.h" #include "config.hpp" +#include "administration.hpp" #define MAX_LEN_LOG_HISTORY 256 #define MAX_LEN_LOG_TXT 128 @@ -27,10 +28,14 @@ typedef struct { u32 write_cursor; u32 history_length; char history[MAX_LEN_LOG_HISTORY][MAX_LEN_LOG_TXT]; + ImVec4 colors[MAX_LEN_LOG_HISTORY]; } log; #define STOPWATCH_START tick_t timestamp_start = timer_current(); #define STOPWATCH_TIME (timer_elapsed(timestamp_start)*1000.0f) log* get_log(); -void log_add(const char* fmt, ...) IM_FMTARGS(2); \ No newline at end of file + +void log_aerr(a_err errors); +void log_info(const char* fmt, ...) IM_FMTARGS(2); +void log_error(const char* fmt, ...) IM_FMTARGS(2); \ No newline at end of file -- cgit v1.2.3-70-g09d2