diff options
Diffstat (limited to 'include/log.hpp')
| -rw-r--r-- | include/log.hpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/include/log.hpp b/include/log.hpp deleted file mode 100644 index bff3d05..0000000 --- a/include/log.hpp +++ /dev/null @@ -1,42 +0,0 @@ -/* -* Copyright (c) 2025 Aldrik Ramaekers <aldrik.ramaekers@gmail.com> -* -* Permission to use, copy, modify, and/or distribute this software for any -* purpose with or without fee is hereby granted, provided that the above -* copyright notice and this permission notice appear in all copies. -* -* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF -* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -*/ - -#pragma once - -#include "timer.h" -#include "imgui.h" -#include "config.hpp" -#include "administration.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]; - ImVec4 colors[MAX_LEN_LOG_HISTORY]; -} program_log; - -#define STOPWATCH_START tick_t timestamp_start = timer_current(); -#define STOPWATCH_TIME (timer_elapsed(timestamp_start)*1000.0f) - -program_log* get_log(); - -void log_clear(); -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 |
