diff options
Diffstat (limited to 'include/log.hpp')
| -rw-r--r-- | include/log.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
