diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-26 18:41:40 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-26 18:41:40 +0200 |
| commit | bd3f2b84742067d0b9049b9f42f2266f94dbb0f9 (patch) | |
| tree | 6cec399009a035fbdf0204a10d43a7a81cea8c93 /src/log.cpp | |
| parent | 52effd42917e2dc8bc6b900df145bc13107e1478 (diff) | |
refactor customer_id and supplier_id out of invoice
Diffstat (limited to 'src/log.cpp')
| -rw-r--r-- | src/log.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/log.cpp b/src/log.cpp index 839ebbe..5180705 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -27,6 +27,12 @@ log* get_log() return &g_log; } +void log_clear() +{ + g_log.write_cursor = 0; + g_log.history_length = 0; +} + static void log_message(const char* fmt, ImVec4 color, va_list args) { vsnprintf(g_log.history[g_log.write_cursor], MAX_LEN_LOG_TXT, fmt, args); |
