diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-26 17:58:31 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-26 17:58:31 +0200 |
| commit | fb8361d11bdf8c21d2e9d3b94bae444089ba0d96 (patch) | |
| tree | 9ab563c0c3eefb71ee4a1db6079d58e377a252a3 /include/log.hpp | |
| parent | e2321f28730adcb8d67800a434ebc7d60a6dcccb (diff) | |
log read and write failures
Diffstat (limited to 'include/log.hpp')
| -rw-r--r-- | include/log.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
