NeoMutt  2024-10-02-37-gfa9146
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 "mutt/lib.h"
28#include "curses2.h"
29
30#ifdef USE_DEBUG_COLOR
31
32const char *color_log_color(color_t fg, color_t bg);
33
34void curses_color_dump(struct CursesColor *cc, const char *prefix);
35
36void ansi_colors_dump (struct Buffer *buf);
37void curses_colors_dump(struct Buffer *buf);
38void merged_colors_dump(struct Buffer *buf);
39
40#define color_debug(LEVEL, ...) MuttLogger(0, __FILE__, __LINE__, __func__, LEVEL, __VA_ARGS__)
41
42#else
43
44static inline const char *color_log_color(color_t fg, color_t bg) { return ""; }
45
46static inline void curses_color_dump(struct CursesColor *cc, const char *prefix) {}
47
48static inline void ansi_colors_dump (struct Buffer *buf) {}
49static inline void curses_colors_dump(struct Buffer *buf) {}
50static inline void merged_colors_dump(struct Buffer *buf) {}
51
52static inline int color_debug(enum LogLevel level, const char *format, ...) { return 0; }
53
54#endif
55
56#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:46
static void curses_colors_dump(struct Buffer *buf)
Definition: debug.h:49
static void merged_colors_dump(struct Buffer *buf)
Definition: debug.h:50
static void ansi_colors_dump(struct Buffer *buf)
Definition: debug.h:48
static int color_debug(enum LogLevel level, const char *format,...)
Definition: debug.h:52
static const char * color_log_color(color_t fg, color_t bg)
Definition: debug.h:44
LogLevel
Names for the Logging Levels.
Definition: logging2.h:38
Convenience wrapper for the library headers.
String manipulation buffer.
Definition: buffer.h:36
Colour in the ncurses palette.
Definition: curses2.h:41