From d174d803de2296061731c3698980a6a51e6fc3ef Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 12 Sep 2025 14:51:41 +0200 Subject: fix invoice savefile overflow --- include/log.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 include/log.hpp (limited to 'include/log.hpp') diff --git a/include/log.hpp b/include/log.hpp new file mode 100644 index 0000000..dcb2987 --- /dev/null +++ b/include/log.hpp @@ -0,0 +1,15 @@ +#pragma once + +#include "imgui.h" +#include "config.hpp" + +#define MAX_LEN_LOG_HISTORY 256 +#define MAX_LEN_LOG_TXT 128 + +typedef struct { + u32 write_cursor; + u32 history_length; + char history[MAX_LEN_LOG_HISTORY][MAX_LEN_LOG_TXT]; +} log; + +void log_add(double timestamp, const char* fmt, ...) IM_FMTARGS(2); \ No newline at end of file -- cgit v1.2.3-70-g09d2