NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
debug.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_DEBUG_H
24#define MUTT_COLOR_DEBUG_H
25
26#include "config.h"
27#include "curses2.h"
28
29struct Buffer;
30
31#ifdef USE_DEBUG_COLOR
32
33const char *color_log_color(color_t fg, color_t bg);
34
35void curses_color_dump(struct CursesColor *cc, const char *prefix);
36
37void ansi_colors_dump (struct Buffer *buf);
38void curses_colors_dump(struct Buffer *buf);
39void merged_colors_dump(struct Buffer *buf);
40
41#define color_debug(LEVEL, ...) MuttLogger(0, __FILE__, __LINE__, __func__, LEVEL, __VA_ARGS__)
42
43#else
44
45static inline const char *color_log_color(color_t fg, color_t bg) { return ""; }
46
47static inline void curses_color_dump(struct CursesColor *cc, const char *prefix) {}
48
49static inline void ansi_colors_dump (struct Buffer *buf) {}
50static inline void curses_colors_dump(struct Buffer *buf) {}
51static inline void merged_colors_dump(struct Buffer *buf) {}
52
53static inline int color_debug(enum LogLevel level, const char *format, ...) { return 0; }
54
55#endif
56
57#endif /* MUTT_COLOR_DEBUG_H */
Curses Colour.
int32_t color_t
Type for 24-bit colour value.
Definition: curses2.h:31
static void curses_color_dump(struct CursesColor *cc, const char *prefix)
Definition: debug.h:47
static void curses_colors_dump(struct Buffer *buf)
Definition: debug.h:50
static void merged_colors_dump(struct Buffer *buf)
Definition: debug.h:51
static void ansi_colors_dump(struct Buffer *buf)
Definition: debug.h:49
static int color_debug(enum LogLevel level, const char *format,...)
Definition: debug.h:53
static const char * color_log_color(color_t fg, color_t bg)
Definition: debug.h:45
LogLevel
Names for the Logging Levels.
Definition: logging2.h:38
String manipulation buffer.
Definition: buffer.h:36
Colour in the ncurses palette.
Definition: curses2.h:41