diff options
| author | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
| commit | 451a320920c6e2f60445938aa98d4fe817c3d36a (patch) | |
| tree | 02e6b7bd9a6e2824ef332b0143c98348ff8c85b3 /analyzer/render.h | |
| parent | ad5eb982de97d982bc808ece89903d1113ab9917 (diff) | |
Diffstat (limited to 'analyzer/render.h')
| -rw-r--r-- | analyzer/render.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/analyzer/render.h b/analyzer/render.h index 7ad2e92..6c9f844 100644 --- a/analyzer/render.h +++ b/analyzer/render.h @@ -1,9 +1,9 @@ // render.h // functions for "rendering" data onto the terminal +#include "analyzer.h" #include "parser/fight_results/fight_results.h" #include "utils/memory.h" -#include "analyzer.h" // ANSI escape sequence colors #define COLOR_GOLD 33 @@ -46,7 +46,9 @@ inline static size_t sum_col_widths() { return sum; } -#define TABLE_LINE_WIDTH (TABLE_LINE_START_WIDTH + sum_col_widths() + (ARR_LEN(columns) - 1) * TABLE_LINE_SEPARATOR_WIDTH + TABLE_LINE_END_WIDTH) +#define TABLE_LINE_WIDTH \ + (TABLE_LINE_START_WIDTH + sum_col_widths() + \ + (ARR_LEN(columns) - 1) * TABLE_LINE_SEPARATOR_WIDTH + TABLE_LINE_END_WIDTH) #define TABLE_ITEMS_WIDTH (TABLE_LINE_WIDTH - TABLE_LINE_START_WIDTH - TABLE_LINE_END_WIDTH) |
